X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=2f6e6947b28029b9830e1d9aee78e595580a249b;hp=401664424fe2149cb97c4f9718d341f1f8dfa812;hb=b89deb99c8e5d5e96d502a7c90b2bbc7daaac822;hpb=919101c59390dbbe380af7cc77102819e515a632 diff --git a/util.cpp b/util.cpp index 4016644..2f6e694 100644 --- a/util.cpp +++ b/util.cpp @@ -89,7 +89,7 @@ string read_file(const string &filename) const string full_pathname = *movit_data_directory + "/" + filename; FILE *fp = fopen(full_pathname.c_str(), "r"); - if (fp == NULL) { + if (fp == nullptr) { perror(full_pathname.c_str()); exit(1); } @@ -294,7 +294,7 @@ void *get_gl_context_identifier() return (void *)wglGetCurrentContext(); #else void *ret = (void *)eglGetCurrentContext(); - if (ret != NULL) { + if (ret != nullptr) { return ret; } return (void *)glXGetCurrentContext();