mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
cppcheck cleanup
This commit is contained in:
parent
282feba074
commit
5ab99d2469
@ -173,7 +173,7 @@ void FactionType::load(const string &factionName, const TechTree *techTree, Chec
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what());
|
||||
@ -201,7 +201,7 @@ void FactionType::load(const string &factionName, const TechTree *techTree, Chec
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what());
|
||||
@ -242,7 +242,7 @@ void FactionType::load(const string &factionName, const TechTree *techTree, Chec
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor FactionType: %s for StartResource: %s\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),this->name.c_str(),name.c_str());
|
||||
|
@ -477,7 +477,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor UnitType: %s Cost: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),name.c_str(),iterMap->second);
|
||||
@ -519,7 +519,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor UnitType: %s Store: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),name.c_str(),iterMap->second);
|
||||
@ -647,7 +647,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor UnitType: %s SkillType: %s\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),name.c_str(),classId.c_str());
|
||||
@ -672,7 +672,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor UnitType: %s CommandType:%s\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),name.c_str(),classId.c_str());
|
||||
|
@ -707,7 +707,7 @@ void UpgradeType::load(const string &dir, const TechTree *techTree,
|
||||
}
|
||||
catch(megaglest_runtime_error& ex) {
|
||||
if(validationMode == false) {
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\nFor UpgradeType: %s Cost: %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what(),name.c_str(),iterMap->second);
|
||||
|
Loading…
x
Reference in New Issue
Block a user