X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FMippleton.hh;fp=src%2FMoof%2FMippleton.hh;h=7ad17823a45862cfe7eae2b7f0d03148c34db692;hp=cde68d2b4b99eeb7024c5f1f77eae469bfec198b;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=df541170776dc4ac4f241ca480812bd70bcb6eca diff --git a/src/Moof/Mippleton.hh b/src/Moof/Mippleton.hh index cde68d2..7ad1782 100644 --- a/src/Moof/Mippleton.hh +++ b/src/Moof/Mippleton.hh @@ -57,7 +57,7 @@ class Mippleton static PtrMap ptrs_; std::string name_; - inline static T* retain(const std::string& name) + static T* retain(const std::string& name) { typename PtrMap::iterator it = ptrs_.find(name); @@ -74,12 +74,12 @@ class Mippleton } } - inline static void release(T* obj) + static void release(T* obj) { releaseByName(obj->name_); } - inline static void releaseByName(const std::string& name) + static void releaseByName(const std::string& name) { typename PtrMap::iterator it; @@ -91,15 +91,16 @@ class Mippleton } public: + explicit Mippleton(const std::string& name) : name_(name) {} - inline const std::string& getName() const + const std::string& getName() const { return name_; } - inline static boost::shared_ptr getInstance(const std::string& name) + static boost::shared_ptr getInstance(const std::string& name) { return boost::shared_ptr(retain(name), &release); }