summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-06-22 14:15:43 -0700
committerJens Carl <j.carl43@gmx.de>2019-06-23 17:59:21 +0200
commit958e304490a23ef4964270ffa7a2ed0e76e39a0c (patch)
tree7267a283607508c5bc6fcb611a25753ae966e506 /include/test
parent8e7f87e7561197f03542a80aaa612a2b6f964d40 (diff)
Use in-class member initializers
Don't use a default ctor that only initializes data members, but rather in-class member initializers. Follow CppCoreGuidelines rule C.45 (see https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-default). Change-Id: I52d26fa0393f7e383beb95456dd016aa0e84b777 Reviewed-on: https://gerrit.libreoffice.org/74589 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/drawing/xshape.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/test/drawing/xshape.hxx b/include/test/drawing/xshape.hxx
index 7da565355635..2e9c26c9df9a 100644
--- a/include/test/drawing/xshape.hxx
+++ b/include/test/drawing/xshape.hxx
@@ -20,7 +20,8 @@ namespace apitest
class OOO_DLLPUBLIC_TEST XShape
{
public:
- XShape(bool bObjSupportsPosition = true)
+ XShape() = default;
+ XShape(bool bObjSupportsPosition)
: m_bObjSupportsPosition(bObjSupportsPosition)
{
}
@@ -33,7 +34,7 @@ protected:
~XShape() {}
private:
- bool const m_bObjSupportsPosition;
+ bool const m_bObjSupportsPosition{ true };
};
} // namespace apitest