summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-19 08:55:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-19 08:55:57 +0200
commit9793d387529227f8e0a56e82ffa066ee294d5d50 (patch)
tree9015657d9176e4727c9034f0887289fab6fd0817
parent9a1aca007fd06f3f8223ee02a79e44099d778b51 (diff)
Use standard idiom
Change-Id: I77b2732e04435ee93044b65c4925de43cc20187f
-rw-r--r--filter/source/config/cache/basecontainer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx
index ebbb7f2b38d8..f32bc8a94022 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));
}