summaryrefslogtreecommitdiff
path: root/dtrans/source/generic
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:19:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:21:18 +0200
commitb09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c (patch)
treedacb87512726af1941d0c6b072d0b3626335cc4c /dtrans/source/generic
parent87c1aa16a95dcff9247ae12a4bb5ea2d866b1772 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
Diffstat (limited to 'dtrans/source/generic')
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx
index d71161980829..42d8fc947ec0 100644
--- a/dtrans/source/generic/generic_clipboard.cxx
+++ b/dtrans/source/generic/generic_clipboard.cxx
@@ -101,7 +101,7 @@ void SAL_CALL GenericClipboard::setContents(const Reference< XTransferable >& xT
// notify all listeners on content changes
OInterfaceContainerHelper *pContainer =
- rBHelper.aLC.getContainer(getCppuType( (Reference < XClipboardListener > *) 0));
+ rBHelper.aLC.getContainer(cppu::UnoType<XClipboardListener>::get());
if (pContainer)
{
ClipboardEvent aEvent(static_cast < XClipboard * > (this), m_aContents);
@@ -144,7 +144,7 @@ void SAL_CALL GenericClipboard::removeClipboardListener( const Reference< XClipb
MutexGuard aGuard( rBHelper.rMutex );
OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" );
if (!rBHelper.bInDispose && !rBHelper.bDisposed)
- rBHelper.aLC.removeInterface( getCppuType( (const Reference< XClipboardListener > *) 0 ), listener ); \
+ rBHelper.aLC.removeInterface( cppu::UnoType<XClipboardListener>::get(), listener ); \
}
Sequence< OUString > SAL_CALL GenericClipboard_getSupportedServiceNames()