]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/smoothcontrol.cpp
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / input / smoothcontrol.cpp
index 988509bf99a4990a3972381c33d2734d1447f275..0532aef68ca66d62dc6d38808da0a08c07529eb9 100644 (file)
@@ -16,7 +16,7 @@ SmoothControl::SmoothControl(Device &d, ControlSrcType t, unsigned i):
 
 SmoothControl::~SmoothControl()
 {
-       pair(0);
+       pair(nullptr);
 }
 
 void SmoothControl::set_dead_zone(float d)
@@ -49,8 +49,8 @@ void SmoothControl::pair(SmoothControl *ctrl)
        if(paired_ctrl)
        {
                SmoothControl *old_pair = paired_ctrl;
-               paired_ctrl = 0;
-               old_pair->pair(0);
+               paired_ctrl = nullptr;
+               old_pair->pair(nullptr);
        }
 
        paired_ctrl = ctrl;