]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.cpp
Miscellaneous improvements for handling graphics
[libs/gltk.git] / source / part.cpp
index 7037d4b3384374568bc662a9edc1df3299776ba3..f0ee4b920a226bd2108bd946523ae92cf4550447 100644 (file)
@@ -12,8 +12,7 @@ namespace GLtk {
 Part::Part(const string &n):
        name(n)
 {
-       for(unsigned i=0; i<N_STATES_; ++i)
-               graphic[i] = 0;
+       fill(graphic, graphic+N_STATES_, static_cast<Graphic *>(0));
 }
 
 const Graphic *Part::get_graphic(State state) const