]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/keyframe.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / animation / keyframe.h
index 7a96447e656d5ef533a381b099a9e39e17abc44d..26d18534496b755ceac151601b886b589fad8da3 100644 (file)
@@ -23,10 +23,10 @@ public:
                std::string inline_base_name;
 
        public:
-               Loader(KeyFrame &);
-               Loader(KeyFrame &, Collection &);
+               Loader(KeyFrame &k): Loader(k, 0) { }
+               Loader(KeyFrame &k, Collection &c): Loader(k, &c) { }
        private:
-               void init();
+               Loader(KeyFrame &, Collection *);
 
        public:
                void set_inline_base_name(const std::string &);