]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/glcontext.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / glcontext.h
index 7f08f0e4026423e7d1b3b7c3dd657eae0ff781b1..ef374c1038efc6da274d5b62b370656a4b3fe2f7 100644 (file)
@@ -11,11 +11,8 @@ class Window;
 
 struct GLOptions
 {
-       enum
-       {
-               DEFAULT_VERSION = 0,
-               LATEST_VERSION = 0xFFFFFFFF
-       };
+       static constexpr unsigned DEFAULT_VERSION = 0;
+       static constexpr unsigned LATEST_VERSION = 0xFFFFFFFF;
 
        bool alpha = false;
        bool stencil = false;
@@ -45,7 +42,7 @@ private:
 
        Display &display;
        Window &window;
-       Private *priv = 0;
+       Private *priv = nullptr;
 
 public:
        GLContext(Window &wnd, const GLOptions &opts = GLOptions());