X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.h;h=b2239905edb4d824cd14e1d763ff62d234672032;hb=9bd3968eaaabb278d22f182365d022704d2a2cf1;hp=91f8f070cefbfabe0e0f5a878743fd9eb4e38f00;hpb=534a9fb8c1e8ee6c40be90cb43c89bafb2cfbb24;p=libs%2Fdatafile.git diff --git a/source/collection.h b/source/collection.h index 91f8f07..b223990 100644 --- a/source/collection.h +++ b/source/collection.h @@ -58,7 +58,7 @@ public: template void coll_item(const std::string &n) { - RefPtr it=new T; + RefPtr it = new T; load_sub(*it, dynamic_cast(coll)); coll.add(n, it.get()); it.release(); @@ -67,13 +67,11 @@ public: template void item(const std::string &n) { - RefPtr it=new T; + RefPtr it = new T; load_sub(*it); coll.add(n, it.get()); it.release(); } - - template friend class ItemKeyword; }; private: