]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/progressbar.h
Simplify constructors with C++11
[libs/gltk.git] / source / progressbar.h
index d167410028ac18716706f5a7bff92b81e06e0c2a..6e44e731dff4a3355371aa04eb69376d66eaeffd 100644 (file)
@@ -10,12 +10,10 @@ namespace GLtk {
 class MSPGLTK_API ProgressBar: public Widget
 {
 private:
-       float range;
-       float fraction;
+       float range = 1.0f;
+       float fraction = 0.0f;
 
 public:
-       ProgressBar();
-
        virtual const char *get_class() const { return "progressbar"; }
 
        void set_range(float);