Code cleanup void methods should not return anything ...
This commit is contained in:
parent
805de06291
commit
d28db00a1a
|
@ -1509,7 +1509,7 @@ Vec2i ScriptManager::getUnitPosition(int unitId) {
|
|||
void ScriptManager::setUnitPosition(int unitId, Vec2i pos) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugLUA).enabled) SystemFlags::OutputDebug(SystemFlags::debugLUA,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||
|
||||
return world->setUnitPosition(unitId,pos);
|
||||
world->setUnitPosition(unitId,pos);
|
||||
}
|
||||
|
||||
void ScriptManager::addCellMarker(Vec2i pos, int factionIndex, const string ¬e, const string &textureFile) {
|
||||
|
@ -1521,7 +1521,7 @@ void ScriptManager::addCellMarker(Vec2i pos, int factionIndex, const string ¬
|
|||
void ScriptManager::removeCellMarker(Vec2i pos, int factionIndex) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugLUA).enabled) SystemFlags::OutputDebug(SystemFlags::debugLUA,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||
|
||||
return world->removeCellMarker(pos,factionIndex);
|
||||
world->removeCellMarker(pos,factionIndex);
|
||||
}
|
||||
|
||||
void ScriptManager::showMarker(Vec2i pos, int factionIndex, const string ¬e, const string &textureFile, int flashCount) {
|
||||
|
|
|
@ -78,7 +78,7 @@ protected:
|
|||
}
|
||||
|
||||
}
|
||||
if(value != NULL) {
|
||||
else {
|
||||
try {
|
||||
Mutex &mutexCache = manageCachedItemMutex<T>(cacheKey);
|
||||
MutexSafeWrapper safeMutex(&mutexCache);
|
||||
|
@ -124,7 +124,7 @@ public:
|
|||
}
|
||||
template <typename T>
|
||||
static void clearCachedItem(string cacheKey) {
|
||||
return manageCachedItem<T>(cacheKey,NULL,cacheItemSet);
|
||||
manageCachedItem<T>(cacheKey,NULL,cacheItemSet);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in New Issue