]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/keyframe.cpp
Use default member initializers for simple types
[libs/gl.git] / source / animation / keyframe.cpp
index 6cb8ce6ad1b5d9d5260115bae32821f62961c426..d1f1a7ea298251818b60d2b4c401edd0f0b07a91 100644 (file)
@@ -8,13 +8,6 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-// Avoid synthesizing RefPtr c'tor and d'tor in files including keyframe.h
-KeyFrame::KeyFrame()
-{ }
-
-KeyFrame::~KeyFrame()
-{ }
-
 void KeyFrame::set_transform(const Transform &t)
 {
        transform = t;
@@ -47,19 +40,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);