replace NULL by nullptr on loadFile.

This commit is contained in:
Kim Kulling
2020-06-21 12:03:38 +02:00
parent abb628bc58
commit 6397bfbf90
13 changed files with 38 additions and 29 deletions

View File

@@ -122,8 +122,9 @@ void HMPImporter::InternReadFile( const std::string& pFile,
std::unique_ptr<IOStream> file(mIOHandler->Open(pFile));
// Check whether we can read from the file
if( file.get() == nullptr)
throw DeadlyImportError( "Failed to open HMP file " + pFile + ".");
if (file.get() == nullptr) {
throw DeadlyImportError("Failed to open HMP file " + pFile + ".");
}
// Check whether the HMP file is large enough to contain
// at least the file header