X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcollection.h;h=b2239905edb4d824cd14e1d763ff62d234672032;hb=61f6f66a7db1a074143cd0e9948a262d30876dea;hp=91f8f070cefbfabe0e0f5a878743fd9eb4e38f00;hpb=a4091f14dfbf4d5f822fa26740a7b3f305c449e6;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: