]> git.tdb.fi Git - libs/datafile.git/commitdiff
Style fixes
authorMikko Rasa <tdb@tdb.fi>
Tue, 17 Apr 2012 09:00:03 +0000 (12:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 17 Apr 2012 09:00:03 +0000 (12:00 +0300)
source/collection.h

index 91f8f070cefbfabe0e0f5a878743fd9eb4e38f00..b2239905edb4d824cd14e1d763ff62d234672032 100644 (file)
@@ -58,7 +58,7 @@ public:
                template<typename T, typename S, typename C>
                void coll_item(const std::string &n)
                {
-                       RefPtr<T> it=new T;
+                       RefPtr<T> it = new T;
                        load_sub(*it, dynamic_cast<C &>(coll));
                        coll.add<S>(n, it.get());
                        it.release();
@@ -67,13 +67,11 @@ public:
                template<typename T, typename S>
                void item(const std::string &n)
                {
-                       RefPtr<T> it=new T;
+                       RefPtr<T> it = new T;
                        load_sub(*it);
                        coll.add<S>(n, it.get());
                        it.release();
                }
-
-               template<typename, typename, bool> friend class ItemKeyword;
        };
 
 private: