Kaydet (Commit) 2877b291 authored tarafından Julien Nabet's avatar Julien Nabet

Use "!=" instead of "<" to compare current it with end it

Change-Id: Ic2ed4b935ecf1d63065bc5147e62d510e73bd5c5
üst 39b81f2f
......@@ -236,8 +236,8 @@ void BrowseBox::InsertHandleColumn( sal_uLong nWidth )
{
BrowserColumns::iterator iCol = pCols->begin();
const BrowserColumns::iterator colsEnd = pCols->end();
if ( iCol < colsEnd )
for (++iCol; iCol < colsEnd; ++iCol)
if ( iCol != colsEnd )
for (++iCol; iCol != colsEnd; ++iCol)
OSL_ENSURE( (*iCol)->GetId() != HandleColumnId, "BrowseBox::InsertHandleColumn: there is a non-Handle column with handle ID" );
}
#endif
......@@ -269,7 +269,7 @@ void BrowseBox::InsertDataColumn( sal_uInt16 nItemId, const OUString& rText,
#if OSL_DEBUG_LEVEL > 0
{
const BrowserColumns::iterator colsEnd = pCols->end();
for (BrowserColumns::iterator iCol = pCols->begin(); iCol < colsEnd; ++iCol)
for (BrowserColumns::iterator iCol = pCols->begin(); iCol != colsEnd; ++iCol)
OSL_ENSURE( (*iCol)->GetId() != nItemId, "BrowseBox::InsertDataColumn: duplicate column Id" );
}
#endif
......
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