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

Tor Lillqvist tml at collabora.com
Wed Apr 1 05:57:02 PDT 2015


 sw/source/core/unocore/unotbl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 50c33461201d9183e9304d064eb9669a7bad5b31
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Apr 1 15:33:17 2015 +0300

    WaE: comparison of integers of different signs
    
    Change-Id: Iae6be25962975f7db2226d4e5d58ce69eb23de57

diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index c9e3a81..cf56f1f 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() != vCells.size())
+    if(rDesc.getLength() != (sal_Int32) 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