summaryrefslogtreecommitdiff
path: root/sc/inc/compressedarray.hxx
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 /sc/inc/compressedarray.hxx
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 'sc/inc/compressedarray.hxx')
-rw-r--r--sc/inc/compressedarray.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx
index d514aaed475c..bfcb07888318 100644
--- a/sc/inc/compressedarray.hxx
+++ b/sc/inc/compressedarray.hxx
@@ -73,19 +73,19 @@ public:
void Reset( const D& rValue );
void SetValue( A nPos, const D& rValue );
void SetValue( A nStart, A nEnd, const D& rValue );
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
const D& GetValue( A nPos ) const;
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
A GetLastPos() const { return pData[nCount-1].nEnd; }
/** Get value for a row, and it's region end row */
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
const D& GetValue( A nPos, size_t& nIndex, A& nEnd ) const;
/** Get next value and it's region end row. If nIndex<nCount, nIndex is
incremented first. If the resulting nIndex>=nCount, the value of the
last entry is returned again. */
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
const D& GetNextValue( size_t& nIndex, A& nEnd ) const;
/** Insert rows before nStart and copy value for inserted rows from