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);
}
return (void *)wglGetCurrentContext();
#else
void *ret = (void *)eglGetCurrentContext();
- if (ret != NULL) {
+ if (ret != nullptr) {
return ret;
}
return (void *)glXGetCurrentContext();