summaryrefslogtreecommitdiff
path: root/src/utils/virtfsrwops.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-10 23:19:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-10 23:25:52 +0300
commitc218293c2fe001c23099e73bf9276fe295a7e682 (patch)
tree91ea8099c5eb278cfb7983c452e13b868d8b0888 /src/utils/virtfsrwops.cpp
parentaf1c910f5cc02f57e466ae066494fc73ed96e10a (diff)
downloadmanaverse-c218293c2fe001c23099e73bf9276fe295a7e682.tar.gz
manaverse-c218293c2fe001c23099e73bf9276fe295a7e682.tar.bz2
manaverse-c218293c2fe001c23099e73bf9276fe295a7e682.tar.xz
manaverse-c218293c2fe001c23099e73bf9276fe295a7e682.zip
Rename physfsmemoryobject into debugmemoryobject.
Diffstat (limited to 'src/utils/virtfsrwops.cpp')
-rw-r--r--src/utils/virtfsrwops.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/utils/virtfsrwops.cpp b/src/utils/virtfsrwops.cpp
index 347d26916..81c8b4726 100644
--- a/src/utils/virtfsrwops.cpp
+++ b/src/utils/virtfsrwops.cpp
@@ -26,8 +26,8 @@
#include "logger.h"
+#include "utils/debugmemoryobject.h"
#include "utils/fuzzer.h"
-#include "utils/physfsmemoryobject.h"
#include <map>
@@ -48,7 +48,7 @@ static int openedRWops = 0;
#ifdef DEBUG_PHYSFS
namespace
{
- std::map<void*, PHYSFSMemoryObject*> mRWops;
+ std::map<void*, VirtFs::DebugMemoryObject*> mRWops;
} // namespace
static SDL_RWops *addDebugRWops(SDL_RWops *restrict const rwops,
@@ -59,7 +59,7 @@ static SDL_RWops *addDebugRWops(SDL_RWops *restrict const rwops,
if (!rwops)
return nullptr;
- mRWops[rwops] = new PHYSFSMemoryObject(name, file, line);
+ mRWops[rwops] = new VirtFs::DebugMemoryObject(name, file, line);
return rwops;
}
@@ -68,14 +68,14 @@ static void deleteDebugRWops(SDL_RWops *const rwops)
if (!rwops)
return;
- std::map<void*, PHYSFSMemoryObject*>::iterator it = mRWops.find(rwops);
+ std::map<void*, VirtFs::DebugMemoryObject*>::iterator it = mRWops.find(rwops);
if (it == mRWops.end())
{
logger->log("bad RWops delete: %p", static_cast<void*>(rwops));
}
else
{
- PHYSFSMemoryObject *const obj = (*it).second;
+ VirtFs::DebugMemoryObject *const obj = (*it).second;
if (obj)
{
mRWops.erase(rwops);
@@ -89,12 +89,12 @@ void VirtFs::reportLeaks()
if (!mRWops.empty())
{
logger->log("RWops leaks detected");
- std::map<void*, PHYSFSMemoryObject*>::iterator it = mRWops.begin();
- const std::map<void*, PHYSFSMemoryObject*>::iterator
+ std::map<void*, VirtFs::DebugMemoryObject*>::iterator it = mRWops.begin();
+ const std::map<void*, VirtFs::DebugMemoryObject*>::iterator
it_end = mRWops.end();
for (; it != it_end; ++it)
{
- PHYSFSMemoryObject *obj = (*it).second;
+ VirtFs::DebugMemoryObject *obj = (*it).second;
if (obj)
{
logger->log("file: %s at %s", obj->mName.c_str(),