diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-06-29 15:44:27 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-06-29 15:47:42 +0300 |
commit | 328bfe965ef40d740ffc25a3e2b98974d5dde783 (patch) | |
tree | 3abcaac23ac012703d009d417e8c314e58353072 | |
parent | 68c1a7ba05c4a86fd85679e1c38a23eeba653bcc (diff) |
ScTable::VisibleDataCellIterator::ROW_NOT_FOUND can be constexpr and private
Change-Id: Iee866c10dad9e401b5c507849efa11d877177357
-rw-r--r-- | sc/inc/table.hxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/table1.cxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index c936a38db0f4..38b958478824 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -1183,9 +1183,9 @@ private: */ class VisibleDataCellIterator { - public: - static SCROW ROW_NOT_FOUND; + static constexpr SCROW ROW_NOT_FOUND = -1; + public: explicit VisibleDataCellIterator(ScFlatBoolRowSegments& rRowSegs, ScColumn& rColumn); ~VisibleDataCellIterator(); diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index 1e9a50e05ac4..3009f8ee62b4 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -2088,8 +2088,6 @@ void ScTable::RestorePrintRanges( const ScPrintSaverTab& rSaveTab ) UpdatePageBreaks(nullptr); } -SCROW ScTable::VisibleDataCellIterator::ROW_NOT_FOUND = -1; - ScTable::VisibleDataCellIterator::VisibleDataCellIterator(ScFlatBoolRowSegments& rRowSegs, ScColumn& rColumn) : mrRowSegs(rRowSegs), mrColumn(rColumn), |