Commit 49397678 authored by Julian Helfferich's avatar Julian Helfferich 💬
Browse files

Always initialize GraphicsInterface public members

Use an initializer list in the constructor to default-initialize the
public member variables.
parent 093908ca
Pipeline #48516 passed with stage
in 3 minutes and 44 seconds
...@@ -18,7 +18,16 @@ class KGameTheme; ...@@ -18,7 +18,16 @@ class KGameTheme;
class GraphicsInterface class GraphicsInterface
{ {
public: public:
GraphicsInterface() = default; GraphicsInterface()
: m_Block_Size{},
m_View_Size_Width{},
m_PlayArea_OffsetPoint_X{},
m_PlayArea_OffsetPoint_Y{},
m_PlayArea_NumberOfBlocks_X{},
m_PlayArea_NumberOfBlocks_Y{},
m_PreviewArea_CenterPoint_X{},
m_PreviewArea_CenterPoint_Y{}
{}
virtual ~GraphicsInterface() = default; virtual ~GraphicsInterface() = default;
public: public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment