diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-05 16:19:31 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-05 16:25:43 +0200 |
commit | 9d4c3a2a217e02444601bea9e0eae7ae342fe0e8 (patch) | |
tree | f5085c12e31a9b061671580484a0989963a667a2 | |
parent | b25c29389e81c52395521ce8efdf99699abc500a (diff) |
WaE: comparison of integers of different signs
Change-Id: I936e7bdaf3a4236775add4982005b465f229eb78
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 7508659a58e9..5461863956b8 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; } |