Kaydet (Commit) 8e6527a9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst 1f059a59
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <vector> #include <vector>
#include <set> #include <set>
#include <algorithm> #include <algorithm>
#include <sal/types.h>
#include <o3tl/sorted_vector.hxx> #include <o3tl/sorted_vector.hxx>
class SwRangeRedline; class SwRangeRedline;
...@@ -102,7 +103,7 @@ public: ...@@ -102,7 +103,7 @@ public:
size_t GetPos(Value const& p) const size_t GetPos(Value const& p) const
{ {
const_iterator const it = std::find(begin(), end(), p); 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 bool Contains(Value const& p) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment