]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.cpp
Simplify constructors with C++11
[libs/gltk.git] / source / button.cpp
index abdc1f677b0ff379220813ae67cc0a16187c561a..0dd20c7a6abb841cd4d2f9e98d1b75030d912d98 100644 (file)
@@ -8,10 +8,7 @@ using namespace std;
 namespace Msp {
 namespace GLtk {
 
-Button::Button(const std::string &t):
-       text(),
-       icon(0),
-       pressed(false)
+Button::Button(const std::string &t)
 {
        input_type = INPUT_NAVIGATION;
        set_text(t);