Skip to content

Commit

Permalink
NULL -> nullptr in tools/format/getpost.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed Feb 22, 2020
1 parent ad340a4 commit 8559c66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/format/getpost.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ inline std::string urlDecode( std::string str )
tmp[2] = str[i + 1];
tmp[3] = str[i + 2];
tmp[4] = '\0';
tmpchar = static_cast<char>( strtol( tmp, NULL, 0 ) );
tmpchar = static_cast<char>( strtol( tmp, nullptr, 0 ) );
temp += tmpchar;
i += 2;
continue;
Expand All @@ -65,7 +65,7 @@ inline void initializeGet( std::map <std::string, std::string> &Get )
std::string tmpkey, tmpvalue;
std::string *tmpstr = &tmpkey;
char *raw_get = getenv( "QUERY_STRING" );
if( raw_get == NULL ) {
if( raw_get == nullptr ) {
Get.clear();
return;
}
Expand Down Expand Up @@ -98,9 +98,9 @@ inline void initializePost( std::map <std::string, std::string> &Post )
std::string *tmpstr = &tmpkey;
int content_length;
char *ibuffer;
char *buffer = NULL;
char *buffer = nullptr;
char *strlength = getenv( "CONTENT_LENGTH" );
if( strlength == NULL ) {
if( strlength == nullptr ) {
Post.clear();
return;
}
Expand Down

0 comments on commit 8559c66

Please sign in to comment.