summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-06-29 14:30:26 +0300
committerTor Lillqvist <tml@collabora.com>2017-06-29 14:16:12 +0200
commit68c1a7ba05c4a86fd85679e1c38a23eeba653bcc (patch)
tree770651eb5b693030d18c3ccf973f8ae8f4185e95
parent637d917d7551fed19c9685f974fb3e732a8f97e2 (diff)
ScRowBreakIterator::NOT_FOUND can be constexpr
Change-Id: I33310e400ba8cdb15669704d96de8a3dbbe43be1 Reviewed-on: https://gerrit.libreoffice.org/39386 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--sc/inc/dociter.hxx2
-rw-r--r--sc/source/core/data/dociter.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 04d04b60e29f..b0270c44f907 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -546,7 +546,7 @@ public:
class ScRowBreakIterator
{
public:
- static SCROW NOT_FOUND;
+ static constexpr SCROW NOT_FOUND = -1;
explicit ScRowBreakIterator(::std::set<SCROW>& rBreaks);
SCROW first();
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 989534a67527..11290eb1d94c 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -2692,8 +2692,6 @@ const ScPatternAttr* ScAttrRectIterator::GetNext( SCCOL& rCol1, SCCOL& rCol2,
return nullptr; // Nothing anymore
}
-SCROW ScRowBreakIterator::NOT_FOUND = -1;
-
ScRowBreakIterator::ScRowBreakIterator(set<SCROW>& rBreaks) :
mrBreaks(rBreaks),
maItr(rBreaks.begin()), maEnd(rBreaks.end())