]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/binarycontrol.cpp
Style update: spaces around assignments
[libs/gui.git] / source / input / binarycontrol.cpp
index 70a816570fb2d33bcc697ec52fe1fe770cd19147..57c63427839bda9ac6c1d41f5c234e100790d87d 100644 (file)
@@ -23,14 +23,14 @@ BinaryControl::BinaryControl(Device &d, ControlSrcType t, unsigned i):
 
 void BinaryControl::set_threshold(float t)
 {
-       threshold=t;
+       threshold = t;
 }
 
 void BinaryControl::on_press()
 {
        if(!state)
        {
-               state=true;
+               state = true;
                signal_press.emit();
        }
 }
@@ -39,7 +39,7 @@ void BinaryControl::on_release()
 {
        if(state)
        {
-               state=false;
+               state = false;
                signal_release.emit();
        }
 }