summaryrefslogtreecommitdiff
path: root/sc/inc/table.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/table.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/table.hxx')
-rw-r--r--sc/inc/table.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index e804a1ca9cc2..64bf2bd95b2c 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -313,15 +313,15 @@ public:
bool IsStreamValid() const { return bStreamValid; }
void SetStreamValid( bool bSet, bool bIgnoreLock = false );
- SAL_WARN_UNUSED_RESULT bool IsColValid( const SCCOL nScCol ) const
+ [[nodiscard]] bool IsColValid( const SCCOL nScCol ) const
{
return nScCol >= static_cast< SCCOL >( 0 ) && nScCol < aCol.size();
}
- SAL_WARN_UNUSED_RESULT bool IsColRowValid( const SCCOL nScCol, const SCROW nScRow ) const
+ [[nodiscard]] bool IsColRowValid( const SCCOL nScCol, const SCROW nScRow ) const
{
return IsColValid( nScCol ) && ValidRow( nScRow );
}
- SAL_WARN_UNUSED_RESULT bool IsColRowTabValid( const SCCOL nScCol, const SCROW nScRow, const SCTAB nScTab ) const
+ [[nodiscard]] bool IsColRowTabValid( const SCCOL nScCol, const SCROW nScRow, const SCTAB nScTab ) const
{
return IsColValid( nScCol ) && ValidRow( nScRow ) && ValidTab( nScTab );
}
@@ -944,7 +944,7 @@ public:
void GetFilterEntries(SCCOL nCol, SCROW nRow1, SCROW nRow2, ScFilterEntries& rFilterEntries );
void GetFilteredFilterEntries(SCCOL nCol, SCROW nRow1, SCROW nRow2, const ScQueryParam& rParam, ScFilterEntries& rFilterEntries );
- SAL_WARN_UNUSED_RESULT
+ [[nodiscard]]
bool GetDataEntries(SCCOL nCol, SCROW nRow, std::set<ScTypedStrData>& rStrings, bool bLimit);
bool HasColHeader( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ) const;