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

Improve readability of MockSvgItem

Initialize member variable in the declaration. Since this is a C++11
feature, CMakeList.txt should also mandate C++11.
parent a9a830df
......@@ -11,6 +11,8 @@ project(kblocks VERSION ${RELEASE_SERVICE_VERSION})
set (QT_MIN_VERSION "5.12.0")
set (KF5_MIN_VERSION "5.68.0")
set (CMAKE_CXX_STANDARD 11)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
......
......@@ -15,7 +15,7 @@
class MockSvgItem : public SvgItemInterface
{
public:
MockSvgItem() : updateSelfCalled(false) {}
MockSvgItem() = default;
virtual ~MockSvgItem() = default;
......@@ -28,7 +28,7 @@ public:
void execPosAnim(qreal) override {}
void stopPosAnim() override {}
bool updateSelfCalled;
bool updateSelfCalled = false;
bool clearCacheCalled = false;
};
......
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