diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 17:55:50 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 17:55:50 +0100 |
commit | fe5e53a81860b422a3aa863d0ecdc8dca6f5b364 (patch) | |
tree | a4dfd4ac1d4e855c34010c7ddab1fe21d9c12c62 /svtools/source/misc | |
parent | Prefer prefix ++/-- operators for non-primitive types (diff) | |
download | core-fe5e53a81860b422a3aa863d0ecdc8dca6f5b364.tar.gz core-fe5e53a81860b422a3aa863d0ecdc8dca6f5b364.zip |
Prefer to be sure not to have invalided iterator problems
Change-Id: I2d520b88927c6acb3d248da05815822315bd066f
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index b92a3ed61195..a682f54060ed 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -696,9 +696,8 @@ void TransferableHelper::RemoveFormat( SotFormatStringId nFormat ) void TransferableHelper::RemoveFormat( const DataFlavor& rFlavor ) { DataFlavorExVector::iterator aIter( mpFormats->begin() ); - const DataFlavorExVector::const_iterator aEnd( mpFormats->end() ); - while (aIter != aEnd) + while (aIter != mpFormats->end()) { if( TransferableDataHelper::IsEqual( *aIter, rFlavor ) ) aIter = mpFormats->erase( aIter ); |