Fix compiler warnings + one review finding.

This commit is contained in:
Kim Kulling
2017-07-09 22:17:35 +02:00
parent 647b59b7fa
commit d40b6089e8
7 changed files with 15 additions and 37 deletions

View File

@@ -159,6 +159,9 @@ void PLYImporter::InternReadFile(const std::string& pFile,
// Get the file-size
size_t fileSize = fileStream->FileSize();
if ( 0 == fileSize ) {
throw DeadlyImportError("File " + pFile + " is empty.");
}
IOStreamBuffer<char> streamedBuffer(1024 * 1024);
streamedBuffer.open(fileStream.get());