diff options
-rw-r--r-- | svtools/source/misc/transfer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index fbc688afdd53..b92a3ed61195 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -695,15 +695,13 @@ void TransferableHelper::RemoveFormat( SotFormatStringId nFormat ) void TransferableHelper::RemoveFormat( const DataFlavor& rFlavor ) { - DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() ); + DataFlavorExVector::iterator aIter( mpFormats->begin() ); + const DataFlavorExVector::const_iterator aEnd( mpFormats->end() ); - while( aIter != aEnd ) + while (aIter != aEnd) { if( TransferableDataHelper::IsEqual( *aIter, rFlavor ) ) - { aIter = mpFormats->erase( aIter ); - aEnd = mpFormats->end(); - } else ++aIter; } |