Apply various clang-tidy checks for smartprs and modern C++ types
This commit is contained in:
@@ -205,7 +205,7 @@ void MD2Importer::InternReadFile( const std::string& pFile,
|
||||
std::unique_ptr<IOStream> file( pIOHandler->Open( pFile));
|
||||
|
||||
// Check whether we can read from the file
|
||||
if (file.get() == nullptr) {
|
||||
if (file == nullptr) {
|
||||
throw DeadlyImportError("Failed to open MD2 file ", pFile, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user