diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-02 08:30:10 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-02 08:31:36 +0100 |
commit | ad0aec407d09711f58acbacbf6296ca53b760725 (patch) | |
tree | 30ae1e72a2b550cf3052b5523887da3353eabcc1 /include/tools | |
parent | f69585c35411ca74e17bb6cd1cf535489472a4c2 (diff) |
Fix error C2057: expected constant expression
Change-Id: Ie345ede60c1204c38a1c157c6335e3ded81fc26f
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/unqidx.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx index dd66c300b1bc..8e979bf22f55 100644 --- a/include/tools/unqidx.hxx +++ b/include/tools/unqidx.hxx @@ -19,8 +19,8 @@ #ifndef INCLUDED_TOOLS_UNQIDX_HXX #define INCLUDED_TOOLS_UNQIDX_HXX +#include <sal/types.h> #include <tools/toolsdllapi.h> -#include <limits> #include <map> class SAL_WARN_UNUSED TOOLS_DLLPUBLIC UniqueIndexImpl @@ -28,7 +28,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC UniqueIndexImpl public: typedef sal_uInt32 Index; enum { - IndexNotFound = std::numeric_limits<Index>::max() + IndexNotFound = SAL_MAX_UINT32 }; private: |