diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-02-10 22:09:34 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-02-10 22:37:26 +0100 |
commit | 2877b291b04b8ffa0071c55c8af7a8113f7825b2 (patch) | |
tree | 8b077759ef6cd455b983ab69d64d32545caeaf07 /svtools/source | |
parent | 39b81f2fd09f020d183fec2319eb688d2db9d8a9 (diff) |
Use "!=" instead of "<" to compare current it with end it
Change-Id: Ic2ed4b935ecf1d63065bc5147e62d510e73bd5c5
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 334040c82f7c..8d4127f4ce20 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -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 |