]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/control.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / input / control.h
index b71c81871e94ca67b95433d91b679a2e9234751a..f9c7003b4290ea17b8f57dfb43249b03f8489288 100644 (file)
@@ -25,7 +25,7 @@ different types of controls in a uniform way.
 */
 struct ControlSource
 {
-       Device *dev = 0;
+       Device *dev = nullptr;
        ControlSrcType type = NO_SOURCE;
        unsigned index = 0;
 
@@ -55,8 +55,8 @@ public:
 
 protected:
        ControlSource src;
-       Device *capture_dev = 0;
-       BinaryControl *activator = 0;
+       Device *capture_dev = nullptr;
+       BinaryControl *activator = nullptr;
        float origin = 0.0f;
        bool rising_edge = false;
        bool falling_edge = false;