Kaydet (Commit) 9d4c3a2a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: comparison of integers of different signs

Change-Id: I936e7bdaf3a4236775add4982005b465f229eb78
üst b25c2938
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment