[Libreoffice-commits] core.git: include/tools

Stephan Bergmann sbergman at redhat.com
Wed Mar 2 08:29:45 UTC 2016


 include/tools/unqidx.hxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit da83d2899ec20a6cd181c7a0d5f465bd11088a5a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 2 09:29:21 2016 +0100

    Avoid signed/unsigned mismatch warnings with MSVC
    
    Change-Id: I1cca248722d2c9cd4c5b41cca04a0d89b79f3dfa

diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx
index 8e979bf..190b8e1 100644
--- a/include/tools/unqidx.hxx
+++ b/include/tools/unqidx.hxx
@@ -27,9 +27,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC UniqueIndexImpl
 {
 public:
     typedef sal_uInt32 Index;
-    enum {
-        IndexNotFound = SAL_MAX_UINT32
-    };
+    static Index const IndexNotFound = SAL_MAX_UINT32;
 
 private:
     std::map<Index, void*> maMap;


More information about the Libreoffice-commits mailing list