diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-05-04 08:57:00 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-05-04 08:57:03 +0300 |
commit | 8e6527a97bc6f05c5db9f0485089b5cde97531fe (patch) | |
tree | 906cf32316f19220b18c41885613e33a96cfda75 | |
parent | 1f059a591966b69e8943cefa1169a1b6526e2199 (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
-rw-r--r-- | sw/inc/docary.hxx | 3 |
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 |