]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/control.cpp
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / control.cpp
index f82b9c38cd1946ada7cf0d749b0bae8aa7d5309e..fb1d37654b61b812c05bc1092f98158e7df50a16 100644 (file)
@@ -9,12 +9,6 @@ using namespace std;
 namespace Msp {
 namespace Input {
 
-ControlSource::ControlSource():
-       dev(0),
-       type(NONE),
-       index(0)
-{ }
-
 ControlSource::ControlSource(Device &d, ControlSrcType t, unsigned i):
        dev(&d),
        type(t),
@@ -36,30 +30,12 @@ std::string ControlSource::str() const
 }
 
 
-Control::Control():
-       capture_dev(0),
-       activator(0),
-       origin(0),
-       rising_edge(false),
-       falling_edge(false)
-{ }
-
 Control::Control(const ControlSource &s):
-       src(s),
-       capture_dev(0),
-       activator(0),
-       origin(0),
-       rising_edge(false),
-       falling_edge(false)
+       src(s)
 { }
 
 Control::Control(Device &d, ControlSrcType t, unsigned i):
-       src(d, t, i),
-       capture_dev(0),
-       activator(0),
-       origin(0),
-       rising_edge(false),
-       falling_edge(false)
+       src(d, t, i)
 {
        connect_signals();
 }