Code cleanup void methods should not return anything ...

This commit is contained in:
titiger 2020-12-13 13:22:04 +01:00
parent 805de06291
commit d28db00a1a
2 changed files with 4 additions and 4 deletions

View File

@ -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 &note, const string &textureFile) {
@ -1521,7 +1521,7 @@ void ScriptManager::addCellMarker(Vec2i pos, int factionIndex, const string &not
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 &note, const string &textureFile, int flashCount) {

View File

@ -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>