diff options
author | Friedemann Kleint <[email protected]> | 2021-07-20 07:42:06 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-07-29 16:43:56 +0200 |
commit | c06b82ac7b1ff09edbb7515ae057bdf2e51ffb2d (patch) | |
tree | 0a5566d4fde46b2bbec1fb15c0df12c7a7be0c27 /sources/shiboken6/tests/libsample | |
parent | cd26028c85720ed58a31d0564f6a3e87004d6f60 (diff) |
shiboken6: Add test for default constructors
Change-Id: I338599754bcc96d6bd3ca3b0b58eb953b36580e4
Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r-- | sources/shiboken6/tests/libsample/pen.cpp | 4 | ||||
-rw-r--r-- | sources/shiboken6/tests/libsample/pen.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sources/shiboken6/tests/libsample/pen.cpp b/sources/shiboken6/tests/libsample/pen.cpp index e538a6a49..b5c9356d6 100644 --- a/sources/shiboken6/tests/libsample/pen.cpp +++ b/sources/shiboken6/tests/libsample/pen.cpp @@ -28,10 +28,6 @@ #include "pen.h" -Color::Color() : m_null(true) -{ -} - Color::Color(SampleNamespace::InValue arg) : m_null(false) { } diff --git a/sources/shiboken6/tests/libsample/pen.h b/sources/shiboken6/tests/libsample/pen.h index 4feb9f540..3e4fe5dd8 100644 --- a/sources/shiboken6/tests/libsample/pen.h +++ b/sources/shiboken6/tests/libsample/pen.h @@ -35,13 +35,13 @@ class LIBSAMPLE_API Color { public: - Color(); + Color() = default; Color(SampleNamespace::InValue arg); Color(unsigned int arg); bool isNull() const; private: - bool m_null; + bool m_null = true; }; class LIBSAMPLE_API Brush |