[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Wed Apr 1 06:00:19 PDT 2015
sw/source/core/unocore/unotbl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 853d5f27d684436935ce489159d56468b27db3d9
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Apr 1 14:54:19 2015 +0200
sw: -Werror=sign-compare
Change-Id: Ia493809149d0a0bc7e4890e4ec5889a6ba9cfe8e
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index cf56f1f..070bc58 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -4018,7 +4018,7 @@ void SwXCellRange::setLabelDescriptions(const uno::Sequence<OUString>& rDesc, bo
throw uno::RuntimeException("Table too complex", static_cast<cppu::OWeakObject*>(this));
auto xLabelRange(getCellRangeByPosition(nLeft, nTop, nRight, nBottom));
auto vCells(static_cast<SwXCellRange*>(xLabelRange.get())->getCells());
- if(rDesc.getLength() != (sal_Int32) vCells.size())
+ if (sal::static_int_cast<sal_uInt32>(rDesc.getLength()) != vCells.size())
throw uno::RuntimeException("Too few or too many descriptions", static_cast<cppu::OWeakObject*>(this));
auto pDescIterator(rDesc.begin());
for(auto xCell : vCells)
More information about the Libreoffice-commits
mailing list