]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/keyframe.cpp
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / animation / keyframe.cpp
index 6cb8ce6ad1b5d9d5260115bae32821f62961c426..3f3dea28f0d1412d0a0414cfc9384e1ef5993c9a 100644 (file)
@@ -47,19 +47,8 @@ KeyFrame::AnimatedUniform::AnimatedUniform(unsigned s, float v0, float v1, float
 }
 
 
-KeyFrame::Loader::Loader(KeyFrame &k):
-       DataFile::CollectionObjectLoader<KeyFrame>(k, 0)
-{
-       init();
-}
-
-KeyFrame::Loader::Loader(KeyFrame &k, Collection &c):
-       DataFile::CollectionObjectLoader<KeyFrame>(k, &c)
-{
-       init();
-}
-
-void KeyFrame::Loader::init()
+KeyFrame::Loader::Loader(KeyFrame &k, Collection *c):
+       DataFile::CollectionObjectLoader<KeyFrame>(k, c)
 {
        add("pose", &Loader::pose);
        add("pose", &Loader::pose_inline);