DEVTOOLS: Use nullptr
Using clang-tidy modernize-use-nullptr
This commit is contained in:
parent
cb61ec37c4
commit
62797daf3c
31 changed files with 213 additions and 213 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue