From: Mikko Rasa Date: Wed, 26 Sep 2012 20:26:54 +0000 (+0300) Subject: Fix some minor mistakes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ae5c70255ce06515224299985672c540d0b237a7;p=libs%2Fdatafile.git Fix some minor mistakes --- diff --git a/source/collection.h b/source/collection.h index 66c50fe..b2c91d6 100644 --- a/source/collection.h +++ b/source/collection.h @@ -146,7 +146,7 @@ public: { typedef typename RemoveConst::Type NCT; - T *ptr = get_item(items, name).value >(); + T *ptr = get_item(items, name).value >().get(); if(!ptr) throw key_error(typeid(ItemMap)); return *ptr; @@ -159,7 +159,7 @@ public: private: template - void collect_items(std::list *objects, std::list *names, std::list *future_names) + void collect_items(std::list *objects, std::list *names, std::list *future_names) const { typedef RefPtr::Type> RPNCT;