summaryrefslogtreecommitdiff
path: root/sw/inc/ndhints.hxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-07-20 20:10:15 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-07-22 23:50:42 +0200
commit824d78b570b06237a645f8db07eb0cebb2190726 (patch)
tree23544815078e767c81d5047d0263c6c53454977b /sw/inc/ndhints.hxx
parent3621e2d9e16be46b28c26ca9278b91b94dbbd762 (diff)
Use a dedicated constant, with a descriptive name
Change-Id: I7f3ff51ee004450ba059ba5b6995bcdb30c3235d
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r--sw/inc/ndhints.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx
index 0e6e89f145ba..291ee3434e71 100644
--- a/sw/inc/ndhints.hxx
+++ b/sw/inc/ndhints.hxx
@@ -91,6 +91,10 @@ protected:
SwpHtStart m_HintStarts;
SwpHtEnd m_HintEnds;
+ // SAL_MAX_SIZE is used by GetStartOf to return
+ // failure, so just allow SAL_MAX_SIZE-1 hints
+ static const size_t MAX_HINTS = SAL_MAX_SIZE-1;
+
//FIXME: why are the non-const methods public?
public:
void Insert( const SwTxtAttr *pHt );