]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.cpp
Simplify constructors with C++11
[libs/gltk.git] / source / part.cpp
index 22aa378f3f41d52146c473243b821938031ffc0c..21dacc64da547123209388128b0f246b4d6f8014 100644 (file)
@@ -11,9 +11,7 @@ namespace GLtk {
 
 Part::Part(const string &n):
        name(n)
-{
-       fill(graphic, graphic+N_STATES_, static_cast<Graphic *>(0));
-}
+{ }
 
 const Graphic *Part::get_graphic(State state) const
 {