X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;fp=util.cpp;h=2f6e6947b28029b9830e1d9aee78e595580a249b;hp=401664424fe2149cb97c4f9718d341f1f8dfa812;hb=f34b1c36acd27944f00885edfc55363432bfec8e;hpb=0ed2c7fe3876a49d1565e3425e5a491206ffe32d 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();