summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-12-08 13:39:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-08 17:18:38 +0100
commit2e83a62f15b564edfe7f585dd72fcb41058120b3 (patch)
treeb43e06c3a7867251813d876b5be32be3e7c32ebd /vcl
parent7ce84d71b5a7e46bc4322997b1727b260e9b2cbd (diff)
Clean up LIBO_INTERNAL_ONLY uses of SAL_WARN_UNUSED_RESULT
Change-Id: I98b2d90c8345f07010f6defd82557188d5cd35c7 Reviewed-on: https://gerrit.libreoffice.org/64808 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/regionband.hxx4
-rw-r--r--vcl/inc/salframe.hxx2
-rw-r--r--vcl/inc/salgdi.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/inc/regionband.hxx b/vcl/inc/regionband.hxx
index b227226353d1..a007261489fb 100644
--- a/vcl/inc/regionband.hxx
+++ b/vcl/inc/regionband.hxx
@@ -36,7 +36,7 @@ private:
ImplRegionBand* mpLastCheckedBand;
void implReset();
- SAL_WARN_UNUSED_RESULT bool CheckConsistency() const;
+ [[nodiscard]] bool CheckConsistency() const;
public:
RegionBand();
@@ -47,7 +47,7 @@ public:
bool operator==( const RegionBand& rRegionBand ) const;
- SAL_WARN_UNUSED_RESULT bool load(SvStream& rIStrm);
+ [[nodiscard]] bool load(SvStream& rIStrm);
void save(SvStream& rIStrm) const;
bool isSingleRectangle() const;
diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx
index b27b46d828c8..fb3618b3f6bd 100644
--- a/vcl/inc/salframe.hxx
+++ b/vcl/inc/salframe.hxx
@@ -156,7 +156,7 @@ public:
virtual void SetWindowState( const SalFrameState* pState ) = 0;
// if this returns false the structure is uninitialised
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
virtual bool GetWindowState( SalFrameState* pState ) = 0;
virtual void ShowFullScreen( bool bFullScreen, sal_Int32 nDisplay ) = 0;
virtual void PositionByToolkit( const tools::Rectangle&, FloatWinPopupFlags ) {};
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx
index c71235816bae..d3d459d058fe 100644
--- a/vcl/inc/salgdi.hxx
+++ b/vcl/inc/salgdi.hxx
@@ -203,7 +203,7 @@ public:
void mirror( long& nX, const OutputDevice *pOutDev ) const;
// only called mirror2 to avoid ambiguity
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
long mirror2( long nX, const OutputDevice *pOutDev ) const;
void mirror( long& nX, long nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const;