[Libreoffice-commits] core.git: svtools/source
Julien Nabet
serval2412 at yahoo.fr
Tue Feb 10 13:38:19 PST 2015
svtools/source/brwbox/brwbox1.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 2877b291b04b8ffa0071c55c8af7a8113f7825b2
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Feb 10 22:09:34 2015 +0100
Use "!=" instead of "<" to compare current it with end it
Change-Id: Ic2ed4b935ecf1d63065bc5147e62d510e73bd5c5
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 334040c..8d4127f4 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
More information about the Libreoffice-commits
mailing list