From 824d78b570b06237a645f8db07eb0cebb2190726 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 20 Jul 2014 20:10:15 +0200 Subject: Use a dedicated constant, with a descriptive name Change-Id: I7f3ff51ee004450ba059ba5b6995bcdb30c3235d --- sw/inc/ndhints.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/inc/ndhints.hxx') 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 ); -- cgit v1.2.3