]> git.tdb.fi Git - libs/datafile.git/commitdiff
Fix some minor mistakes
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Sep 2012 20:26:54 +0000 (23:26 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Sep 2012 20:26:54 +0000 (23:26 +0300)
source/collection.h

index 66c50fe69d2c86e85ce38ac1e2b4bb73fd8672b3..b2c91d6879c82ef486b9b29b78f0f4054779dd59 100644 (file)
@@ -146,7 +146,7 @@ public:
        {
                typedef typename RemoveConst<T>::Type NCT;
 
-               T *ptr = get_item(items, name).value<RefPtr<NCT> >();
+               T *ptr = get_item(items, name).value<RefPtr<NCT> >().get();
                if(!ptr)
                        throw key_error(typeid(ItemMap));
                return *ptr;
@@ -159,7 +159,7 @@ public:
 
 private:
        template<typename T>
-       void collect_items(std::list<T *> *objects, std::list<std::string> *names, std::list<std::string> *future_names)
+       void collect_items(std::list<T *> *objects, std::list<std::string> *names, std::list<std::string> *future_names) const
        {
                typedef RefPtr<typename RemoveConst<T>::Type> RPNCT;