[Libreoffice-commits] core.git: xmloff/source

Stephan Bergmann sbergman at redhat.com
Fri Dec 15 15:10:53 UTC 2017


 xmloff/source/text/XMLIndexTOCContext.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1c2aaa98ed551f8465fbcc65cd8adc16f4aab657
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Dec 15 11:12:57 2017 +0100

    -Werror,-Wsign-compare (clang-cl)
    
    Change-Id: I4ef3bbcbf93eb2ba6a622b69fefed06321d82cf9
    Reviewed-on: https://gerrit.libreoffice.org/46517
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index cd1f17010fbd..ce73f0052e57 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -104,7 +104,7 @@ XMLIndexTOCContext::XMLIndexTOCContext(SvXMLImport& rImport,
         if (SvXMLUnitConverter::convertEnum(eIndexType, rLocalName, aIndexTypeMap))
         {
             // check for array index:
-            OSL_ENSURE(eIndexType < (SAL_N_ELEMENTS(aIndexServiceMap)), "index out of range");
+            OSL_ENSURE(unsigned(eIndexType) < (SAL_N_ELEMENTS(aIndexServiceMap)), "index out of range");
             OSL_ENSURE(SAL_N_ELEMENTS(aIndexServiceMap) ==
                        SAL_N_ELEMENTS(aIndexSourceElementMap),
                        "service and source element maps must be same size");


More information about the Libreoffice-commits mailing list