summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-14 23:17:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-14 23:18:57 +0200
commitc288b17cc5a1d5051325e02a29aa40df5be6f016 (patch)
treea18b17b49cd5917c456fc2e0c1697fdbbb273195 /filter
parent67f85d7419a475c1e10b6b1d829bb0c575a39fbf (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/basecontainer.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx
index bc0073b144ad..8bf3650cfc93 100644
--- a/filter/source/config/cache/basecontainer.cxx
+++ b/filter/source/config/cache/basecontainer.cxx
@@ -532,7 +532,7 @@ void SAL_CALL BaseContainer::flush()
// Further its not a good idea to hold the own lock
// if an outside object is called :-)
css::lang::EventObject aSource (static_cast< css::util::XFlushable* >(this));
- ::cppu::OInterfaceContainerHelper* pContainer = m_lListener.getContainer(::getCppuType(static_cast< css::uno::Reference< css::util::XFlushListener >* >(NULL)));
+ ::cppu::OInterfaceContainerHelper* pContainer = m_lListener.getContainer(cppu::UnoType<css::util::XFlushListener>::get());
if (pContainer)
{
::cppu::OInterfaceIteratorHelper pIterator(*pContainer);
@@ -562,8 +562,7 @@ void SAL_CALL BaseContainer::addFlushListener(const css::uno::Reference< css::ut
{
// no locks necessary
// used helper lives if we live and is threadsafe by itself ...
- m_lListener.addInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XFlushListener >* >(NULL)),
- xListener );
+ m_lListener.addInterface(cppu::UnoType<css::util::XFlushListener>::get(), xListener);
}
@@ -573,8 +572,7 @@ void SAL_CALL BaseContainer::removeFlushListener(const css::uno::Reference< css:
{
// no locks necessary
// used helper lives if we live and is threadsafe by itself ...
- m_lListener.removeInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XFlushListener >* >(NULL)),
- xListener );
+ m_lListener.removeInterface(cppu::UnoType<css::util::XFlushListener>::get(), xListener);
}
} // namespace config