]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gesturedetector.h
Use constexpr instead of enum to define "typeless" constants
[libs/gui.git] / source / input / gesturedetector.h
index 7f9726c8295ce5d223b93f241dd013f3918cabd9..0b31fd8c1c23aff34aad6914c0d23634566a6cdd 100644 (file)
@@ -30,10 +30,7 @@ absolute values greater than one.
 class GestureDetector: public Device
 {
 private:
-       enum
-       {
-               MAX_POINTS = 3
-       };
+       static constexpr size_t MAX_POINTS = 3;
 
        struct TouchPoint
        {