]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/scene.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / render / scene.h
index b68953446d72df4c735440a9700f827b29191a79..e4f5ecdfd070ff81b499696a8f643a5ce61adb00 100644 (file)
@@ -28,10 +28,10 @@ protected:
                unsigned inst_counter;
 
        public:
-               Loader(Scene &, Collection &);
-               Loader(Scene &, Collection &, ContentMap &);
+               Loader(Scene &s, Collection &c): Loader(s, c, 0) { }
+               Loader(Scene &s, Collection &c, ContentMap &m) : Loader(s, c, &m) { }
        private:
-               void init();
+               Loader(Scene &, Collection &, ContentMap *);
 
                void object(const std::string &);
                void object_tagged(const std::string &, const std::string &);