diff options
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 254abd76293a..55ee766917cc 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -354,12 +354,11 @@ extern "C" void SAL_CALL typelib_typedescription_revokeCallback( // OslGuard aGuard( rInit.getMutex() ); CallbackEntry aEntry( pContext, pCallback ); CallbackSet_Impl::iterator iPos( rInit.pCallbacks->begin() ); - while (!(iPos == rInit.pCallbacks->end())) + while (iPos != rInit.pCallbacks->end()) { if (*iPos == aEntry) { - rInit.pCallbacks->erase( iPos ); - iPos = rInit.pCallbacks->begin(); + iPos = rInit.pCallbacks->erase(iPos); } else { |