Changed: Constification of catches
This commit is contained in:
parent
afbe840c51
commit
5cd37cb3cd
3 changed files with 3 additions and 3 deletions
|
@ -250,7 +250,7 @@ Value* export_material_cf (Value** arg_list, int count)
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception &e)
|
catch (const Exception &e)
|
||||||
{
|
{
|
||||||
// Error message
|
// Error message
|
||||||
char tmp[512];
|
char tmp[512];
|
||||||
|
|
|
@ -2128,7 +2128,7 @@ void appendLightmapLog (COFile &outputLog, const char *lightmapName, const vecto
|
||||||
|
|
||||||
outputLog.serialBuffer ((uint8*)text.c_str(), text.size());
|
outputLog.serialBuffer ((uint8*)text.c_str(), text.size());
|
||||||
}
|
}
|
||||||
catch (exception &e)
|
catch (const exception &e)
|
||||||
{
|
{
|
||||||
nlwarning ("Error writing the file : %s", e.what());
|
nlwarning ("Error writing the file : %s", e.what());
|
||||||
}
|
}
|
||||||
|
|
|
@ -458,7 +458,7 @@ CInstanceGroup* CExportNel::buildInstanceGroup(const vector<INode*>& vectNode, v
|
||||||
delete ss.getShapePointer();
|
delete ss.getShapePointer();
|
||||||
ss.setShapePointer(NULL);
|
ss.setShapePointer(NULL);
|
||||||
}
|
}
|
||||||
catch (NLMISC::Exception &e)
|
catch (const NLMISC::Exception &e)
|
||||||
{
|
{
|
||||||
nlwarning(e.what());
|
nlwarning(e.what());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue