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

Tor Lillqvist tml at collabora.com
Wed Mar 5 06:26:18 PST 2014


 svtools/source/control/ctrlbox.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9d4c3a2a217e02444601bea9e0eae7ae342fe0e8
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Mar 5 16:19:31 2014 +0200

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

diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 7508659..5461863 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -827,7 +827,7 @@ sal_Int32 LineListBox::InsertEntry( const OUString& rStr, sal_Int32 nPos )
 {
     nPos = ListBox::InsertEntry( rStr, nPos );
     if ( nPos != LISTBOX_ERROR ) {
-        if ( nPos < pLineList->size() ) {
+        if ( nPos < static_cast<sal_Int32>(pLineList->size()) ) {
             ImpLineList::iterator it = pLineList->begin();
             ::std::advance( it, nPos );
             pLineList->insert( it, reinterpret_cast<ImpLineListData *>(NULL) );
@@ -855,7 +855,7 @@ void LineListBox::RemoveEntry( sal_Int32 nPos )
 {
     ListBox::RemoveEntry( nPos );
 
-    if ( 0 <= nPos && nPos < pLineList->size() ) {
+    if ( 0 <= nPos && nPos < static_cast<sal_Int32>(pLineList->size()) ) {
         ImpLineList::iterator it = pLineList->begin();
         ::std::advance( it, nPos );
         if ( *it ) delete *it;
@@ -901,7 +901,7 @@ sal_Int32 LineListBox::GetEntryPos( sal_uInt16 nStyle ) const
 
 sal_uInt16 LineListBox::GetEntryStyle( sal_Int32 nPos ) const
 {
-    ImpLineListData* pData = (0 <= nPos && nPos < pLineList->size()) ? (*pLineList)[ nPos ] : NULL;
+    ImpLineListData* pData = (0 <= nPos && nPos < static_cast<sal_Int32>(pLineList->size())) ? (*pLineList)[ nPos ] : NULL;
     return ( pData ) ? pData->GetStyle() : table::BorderLineStyle::NONE;
 }
 


More information about the Libreoffice-commits mailing list