summaryrefslogtreecommitdiff
path: root/sw/inc/docary.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-05-04 08:57:00 +0300
committerTor Lillqvist <tml@collabora.com>2015-05-04 08:57:03 +0300
commit8e6527a97bc6f05c5db9f0485089b5cde97531fe (patch)
tree906cf32316f19220b18c41885613e33a96cfda75 /sw/inc/docary.hxx
parent1f059a591966b69e8943cefa1169a1b6526e2199 (diff)
Fix error: use of undeclared identifier 'SIZE_MAX'
Not sure why I get that error here but elsewhere SIZE_MAX works fine. But anyway, we have SAL_MAX_SIZE, so use it. Change-Id: I2c650bed35a560ed685ac01b4df4dc143af8bcd3
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r--sw/inc/docary.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 386bf5135442..45c485a40d92 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -23,6 +23,7 @@
#include <vector>
#include <set>
#include <algorithm>
+#include <sal/types.h>
#include <o3tl/sorted_vector.hxx>
class SwRangeRedline;
@@ -102,7 +103,7 @@ public:
size_t GetPos(Value const& p) const
{
const_iterator const it = std::find(begin(), end(), p);
- return it == end() ? SIZE_MAX : it - begin();
+ return it == end() ? SAL_MAX_SIZE : it - begin();
}
bool Contains(Value const& p) const