From 5986e192171faa3f7a1422b1f8fd3e561ed5f693 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Sep 2012 03:08:30 +0300 Subject: Add source field to each resources. --- src/resources/resource.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/resources/resource.h') diff --git a/src/resources/resource.h b/src/resources/resource.h index d8f4a7f11..76dd71b4f 100644 --- a/src/resources/resource.h +++ b/src/resources/resource.h @@ -75,6 +75,12 @@ class Resource unsigned getRefCount() const { return mRefCount; } + void setSource(const std::string str) + { mSource = str; } + + std::string getSource() const + { return mSource; } + #ifdef DEBUG_DUMP_LEAKS bool getDumped() const { return mDumped; } @@ -94,7 +100,7 @@ class Resource private: time_t mTimeStamp; /**< Time at which the resource was orphaned. */ unsigned mRefCount; /**< Reference count. */ - std::string mName; + std::string mSource; #ifdef DEBUG_DUMP_LEAKS bool mDumped; #endif -- cgit v1.2.3-70-g09d2