]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/animation.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / animation / animation.h
index 3d247cf5f74bc0821481fc9a2cdbf10f24a0e8ca..eb5911c32a4d08a6c441cabddbd56231aa05f56d 100644 (file)
@@ -31,10 +31,10 @@ public:
                int slopes_set;
 
        public:
-               Loader(Animation &);
-               Loader(Animation &, Collection &);
+               Loader(Animation &a): Loader(a, 0) { }
+               Loader(Animation &a, Collection &c): Loader(a, &c) { }
        private:
-               void init();
+               Loader(Animation &, Collection *);
                virtual void finish();
 
                void check_slopes_and_control(bool, bool);