sw/inc/docary.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 8e6527a97bc6f05c5db9f0485089b5cde97531fe Author: Tor Lillqvist <[email protected]> Date: Mon May 4 08:57:00 2015 +0300 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 diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index 386bf51..45c485a 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 _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
