[tidy] modernize-use-nullptr
This commit is contained in:
@@ -80,8 +80,8 @@ size_t getCurrentRSS( )
|
||||
#elif defined(__linux__) || defined(__linux) || defined(linux) || defined(__gnu_linux__)
|
||||
/* Linux ---------------------------------------------------- */
|
||||
long rss = 0L;
|
||||
FILE* fp = NULL;
|
||||
if ( (fp = fopen( "/proc/self/statm", "r" )) == NULL )
|
||||
FILE* fp = nullptr;
|
||||
if ( (fp = fopen( "/proc/self/statm", "r" )) == nullptr )
|
||||
return (size_t)0L; /* Can't open? */
|
||||
if ( fscanf( fp, "%*s%ld", &rss ) != 1 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user