summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-12-15 11:12:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-12-15 16:05:45 +0100
commit1c2aaa98ed551f8465fbcc65cd8adc16f4aab657 (patch)
treef063b1f8347bfb05a3f11b832070731407a2e707 /xmloff
parent263a6df93013200df3abecfa733fbc558cc48869 (diff)
-Werror,-Wsign-compare (clang-cl)
Change-Id: I4ef3bbcbf93eb2ba6a622b69fefed06321d82cf9 Reviewed-on: https://gerrit.libreoffice.org/46517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx2
1 files changed, 1 insertions, 1 deletions
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");