summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-10-16 01:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2019-10-16 01:03:02 +0300
commite15da561988948de26c80105dc9762943009b9e7 (patch)
tree717dbdffe08daf6a1832ce79043697d3f7e62a23 /src/resources
parent71cfaf012217cf3bbbc39207a12131b748535fcc (diff)
downloadmanaverse-e15da561988948de26c80105dc9762943009b9e7.tar.gz
manaverse-e15da561988948de26c80105dc9762943009b9e7.tar.bz2
manaverse-e15da561988948de26c80105dc9762943009b9e7.tar.xz
manaverse-e15da561988948de26c80105dc9762943009b9e7.zip
Fix code style, ignore some warning in clang-tidy
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/image/image.cpp2
-rw-r--r--src/resources/memorycounter.cpp2
-rw-r--r--src/resources/resourcemanager/resourcemanager.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/image/image.cpp b/src/resources/image/image.cpp
index 967fc17b8..171e035de 100644
--- a/src/resources/image/image.cpp
+++ b/src/resources/image/image.cpp
@@ -513,7 +513,7 @@ int Image::calcMemoryLocal() const
if (mSDLSurface != nullptr)
{
sz += CAST_S32(mAlphaCache.size()) *
- memoryManager.getSurfaceSize(mSDLSurface);
+ MemoryManager::getSurfaceSize(mSDLSurface);
}
return sz;
}
diff --git a/src/resources/memorycounter.cpp b/src/resources/memorycounter.cpp
index 826dcf3e2..13b742c8c 100644
--- a/src/resources/memorycounter.cpp
+++ b/src/resources/memorycounter.cpp
@@ -37,7 +37,7 @@ int MemoryCounter::calcMemory(const int level) const
{
const int sumLocal = calcMemoryLocal();
const int sumChilds = calcMemoryChilds(level);
- memoryManager.printMemory(getCounterName(),
+ MemoryManager::printMemory(getCounterName(),
level,
sumLocal,
sumChilds);
diff --git a/src/resources/resourcemanager/resourcemanager.cpp b/src/resources/resourcemanager/resourcemanager.cpp
index 0764fe94f..74d079541 100644
--- a/src/resources/resourcemanager/resourcemanager.cpp
+++ b/src/resources/resourcemanager/resourcemanager.cpp
@@ -652,7 +652,7 @@ int calcMemoryLocal()
int sz = 24;
FOR_EACH (std::set<SDL_Surface*>::iterator, it, deletedSurfaces)
{
- sz += memoryManager.getSurfaceSize(*it);
+ sz += MemoryManager::getSurfaceSize(*it);
}
return sz;
}
@@ -681,7 +681,7 @@ int calcMemory(const int level)
{
const int sumLocal = calcMemoryLocal();
const int sumChilds = calcMemoryChilds(0);
- memoryManager.printMemory("resource manager",
+ MemoryManager::printMemory("resource manager",
level,
sumLocal,
sumChilds);