filter/source/config/cache/basecontainer.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 9793d387529227f8e0a56e82ffa066ee294d5d50 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Aug 19 08:55:42 2013 +0200 Use standard idiom Change-Id: I77b2732e04435ee93044b65c4925de43cc20187f diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx index ebbb7f2..f32bc8a 100644 --- a/filter/source/config/cache/basecontainer.cxx +++ b/filter/source/config/cache/basecontainer.cxx @@ -133,7 +133,7 @@ void BaseContainer::impl_initFlushMode() m_pFlushCache = m_rCache->clone(); if (!m_pFlushCache) throw css::uno::RuntimeException( "Cant create write copy of internal used cache on demand.", - dynamic_cast< css::container::XNameAccess* >(this)); + static_cast< OWeakObject* >(this)); // <- SAFE } @@ -502,7 +502,7 @@ void SAL_CALL BaseContainer::flush() if (!m_pFlushCache) throw css::lang::WrappedTargetRuntimeException( "Cant guarantee cache consistency. Special flush container does not exists!", - dynamic_cast< css::container::XNameAccess* >(this), + static_cast< OWeakObject* >(this), css::uno::Any()); try @@ -524,7 +524,7 @@ void SAL_CALL BaseContainer::flush() // later again ... throw css::lang::WrappedTargetRuntimeException( "Flush rejected by internal container.", - dynamic_cast< css::container::XNameAccess* >(this), + static_cast< OWeakObject* >(this), css::uno::makeAny(ex)); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits