Apply various clang-tidy checks for smartprs and modern C++ types
This commit is contained in:
@@ -133,7 +133,7 @@ static bool isBigEndian(const char *szMe) {
|
||||
void PLYImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSystem *pIOHandler) {
|
||||
const std::string mode = "rb";
|
||||
std::unique_ptr<IOStream> fileStream(pIOHandler->Open(pFile, mode));
|
||||
if (!fileStream.get()) {
|
||||
if (!fileStream) {
|
||||
throw DeadlyImportError("Failed to open file ", pFile, ".");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user