[Libreoffice-commits] core.git: sw/inc
Tor Lillqvist
tml at collabora.com
Sun May 3 22:58:34 PDT 2015
sw/inc/docary.hxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8e6527a97bc6f05c5db9f0485089b5cde97531fe
Author: Tor Lillqvist <tml at collabora.com>
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
More information about the Libreoffice-commits
mailing list