From 07675230038a24dd251581591379c8fe5cc7bfd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 20:11:07 +0300 Subject: Add memory count functions into MapLayer and SpecailLayer. Also change all memory count functions into const methods. --- src/resources/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/resource.cpp') diff --git a/src/resources/resource.cpp b/src/resources/resource.cpp index a16f088a3..959298290 100644 --- a/src/resources/resource.cpp +++ b/src/resources/resource.cpp @@ -69,7 +69,7 @@ void Resource::decRef() } } -int Resource::calcMemoryLocal() +int Resource::calcMemoryLocal() const { return CAST_S32(sizeof(Resource)) + CAST_S32(mIdPath.size()) + -- cgit v1.2.3-70-g09d2