diff options
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/pen.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/libsample/pen.h b/tests/libsample/pen.h index 9c97c2e36..a0c13ef50 100644 --- a/tests/libsample/pen.h +++ b/tests/libsample/pen.h @@ -29,9 +29,13 @@ class LIBSAMPLE_API Color { public: - Color() {} - Color(SampleNamespace::InValue arg) {} - Color(unsigned int arg) {} + Color() : m_null(true) {} + Color(SampleNamespace::InValue arg) : m_null(false) {} + Color(unsigned int arg) : m_null(false) {} + + bool isNull() const { return m_null; } +private: + bool m_null; }; class LIBSAMPLE_API Pen |