fix some compile warnings:

- passing NULL to non-pointer
- unused vars
- unused function
- order of init
- parentheses
This commit is contained in:
abma
2014-08-17 23:28:00 +02:00
parent aafc8d5f3f
commit 56ddb4f4af
8 changed files with 34 additions and 30 deletions

View File

@@ -147,7 +147,7 @@ namespace {
void ExportScene3DS(const char* pFile, IOSystem* pIOSystem, const aiScene* pScene)
{
boost::shared_ptr<IOStream> outfile (pIOSystem->Open(pFile, "wb"));
if(outfile == NULL) {
if(!outfile) {
throw DeadlyExportError("Could not open output .3ds file: " + std::string(pFile));
}