diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/bitmap.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 3a2baf9e24c7..4c1a3b3dbddf 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -124,6 +124,7 @@ public: inline bool operator!() const; bool operator==( const Bitmap& rBitmap ) const; bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); } + inline operator bool() const; inline bool IsEmpty() const; void SetEmpty(); @@ -550,6 +551,11 @@ private: }; +inline Bitmap::operator bool() const +{ + return mxSalBmp != nullptr; +} + inline bool Bitmap::operator!() const { return( mxSalBmp == nullptr ); |