]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/touchscreen.h
Use constexpr instead of enum to define "typeless" constants
[libs/gui.git] / source / input / touchscreen.h
index 487a91c9760d66a93ea1bd6aceae51a78d1bcbed..d366a28f9f2c33c05f04369eb0601af1d34159a8 100644 (file)
@@ -11,10 +11,7 @@ namespace Input {
 class Touchscreen: public Device, public sigc::trackable
 {
 private:
-       enum
-       {
-               UNUSED = static_cast<unsigned>(-1)
-       };
+       static constexpr unsigned UNUSED = static_cast<unsigned>(-1);
 
        Graphics::Window &window;
        std::vector<unsigned> active_points;