diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-11 11:57:57 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 18:07:36 +0300 |
commit | bd7fb64baec7879931d15090ac4d0c10d853702e (patch) | |
tree | b798b03bf840f046399d6f78700545e2a84b73c3 /test/src | |
parent | 12dba86facb31c2c3911879aa547974caa3761dc (diff) | |
download | qtlocation-mapboxgl-bd7fb64baec7879931d15090ac4d0c10d853702e.tar.gz |
[tidy] modernize-use-nullptr
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/mbgl/test/getrss.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/mbgl/test/getrss.cpp b/test/src/mbgl/test/getrss.cpp index 9f57ad8e7b..c21b653eaa 100644 --- a/test/src/mbgl/test/getrss.cpp +++ b/test/src/mbgl/test/getrss.cpp @@ -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 ) { |