DEVTOOLS: Use nullptr

Using clang-tidy modernize-use-nullptr
This commit is contained in:
Orgad Shaneh 2021-11-13 23:34:17 +02:00 committed by Filippos Karapetis
parent cb61ec37c4
commit 62797daf3c
31 changed files with 213 additions and 213 deletions

View file

@ -2,12 +2,12 @@
bool File::open(const char *filename, AccessMode mode) {
f = fopen(filename, (mode == kFileReadMode) ? "rb" : "wb");
return (f != NULL);
return (f != nullptr);
}
void File::close() {
fclose(f);
f = NULL;
f = nullptr;
}
int File::seek(int32 offset, int whence) {