X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanimation%2Farmature.cpp;h=acfffbf7b3cc2a53b9c1afb419842aac2b8e84c7;hb=b7808c60e0bbbb198500066880b6ed37c0b0e9d0;hp=f339ea2a447ba731c6d042458bb41984e81645bf;hpb=e9a898f315b5d1396f196d785913a283c30940f2;p=libs%2Fgl.git
diff --git a/source/animation/armature.cpp b/source/animation/armature.cpp
index f339ea2a..acfffbf7 100644
--- a/source/animation/armature.cpp
+++ b/source/animation/armature.cpp
@@ -8,7 +8,7 @@ namespace GL {
Armature::Link &Armature::add_link()
{
- links.push_back(Link(string(), links.size()));
+ links.emplace_back(string(), links.size());
return links.back();
}
@@ -17,7 +17,7 @@ const Armature::Link &Armature::get_link(unsigned index) const
for(const Link &l: links)
if(l.get_index()==index)
return l;
- throw key_error(typeid(list));
+ throw key_error(index);
}
const Armature::Link &Armature::get_link(const string &name) const
@@ -25,7 +25,7 @@ const Armature::Link &Armature::get_link(const string &name) const
for(const Link &l: links)
if(l.get_name()==name)
return l;
- throw key_error(typeid(list));
+ throw key_error(name);
}
unsigned Armature::get_max_link_index() const