]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/vulkancontext.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / vulkancontext.h
index d5cc4c3f1e1f176ed97fcc3aff72e46f04c5366b..c59007900a847c7583237f318f4ab8a5482d18a8 100644 (file)
@@ -21,12 +21,10 @@ private:
 
 struct VulkanOptions
 {
-       bool enable_validation;
-       bool enable_debug_report;
-       bool enable_geometry_shader;
-       bool enable_tessellation_shader;
-
-       VulkanOptions();
+       bool enable_validation = false;
+       bool enable_debug_report = false;
+       bool enable_geometry_shader = false;
+       bool enable_tessellation_shader = false;
 };
 
 class VulkanContext
@@ -36,7 +34,7 @@ private:
 
        Display &display;
        Window &window;
-       Private *priv;
+       Private *priv = 0;
 
 public:
        VulkanContext(Window &, const VulkanOptions & = VulkanOptions());