summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-07-23 16:20:52 +0900
committerNoel Grandin <noelgrandin@gmail.com>2015-07-28 07:29:31 +0000
commit7e495e2b9e7b52ed169c936b63d960958db310cd (patch)
treebe9fade8b81fc2e1448870c4ab84e75f41ab880b
parentadbfe33377813b209bb4a7d7e4e9f737be033969 (diff)
tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants in dtrans. Change-Id: Ia7e3c37681c763089dd31c861854a9b500996305 Reviewed-on: https://gerrit.libreoffice.org/17318 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--dtrans/source/cnttype/mcnttfactory.hxx4
-rw-r--r--dtrans/source/cnttype/mcnttype.hxx4
-rw-r--r--dtrans/source/generic/clipboardmanager.cxx2
-rw-r--r--dtrans/source/generic/clipboardmanager.hxx4
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx2
-rw-r--r--dtrans/source/generic/generic_clipboard.hxx4
-rw-r--r--dtrans/source/test/test_dtrans.cxx9
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx2
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.hxx4
-rw-r--r--dtrans/source/win32/dnd/source.cxx2
-rw-r--r--dtrans/source/win32/dnd/source.hxx4
-rw-r--r--dtrans/source/win32/dnd/sourcecontext.cxx2
-rw-r--r--dtrans/source/win32/dnd/sourcecontext.hxx5
-rw-r--r--dtrans/source/win32/dnd/target.cxx2
-rw-r--r--dtrans/source/win32/dnd/target.hxx4
-rw-r--r--dtrans/source/win32/dnd/targetdragcontext.hxx4
-rw-r--r--dtrans/source/win32/dnd/targetdropcontext.hxx4
-rw-r--r--dtrans/source/win32/dtobj/DOTransferable.hxx4
-rw-r--r--dtrans/source/win32/ftransl/ftransl.hxx4
-rw-r--r--dtrans/source/win32/workbench/test_wincb.cxx7
-rw-r--r--dtrans/test/win32/dnd/sourcelistener.hxx4
-rw-r--r--dtrans/test/win32/dnd/targetlistener.hxx4
-rw-r--r--dtrans/test/win32/dnd/transferable.hxx4
23 files changed, 43 insertions, 46 deletions
diff --git a/dtrans/source/cnttype/mcnttfactory.hxx b/dtrans/source/cnttype/mcnttfactory.hxx
index 19bf5501bc4a..7ce1899baf39 100644
--- a/dtrans/source/cnttype/mcnttfactory.hxx
+++ b/dtrans/source/cnttype/mcnttfactory.hxx
@@ -22,12 +22,12 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-#include <cppuhelper/compbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/datatransfer/XMimeContentTypeFactory.hpp>
class CMimeContentTypeFactory : public
- cppu::WeakImplHelper2< com::sun::star::datatransfer::XMimeContentTypeFactory, \
+ cppu::WeakImplHelper< com::sun::star::datatransfer::XMimeContentTypeFactory, \
com::sun::star::lang::XServiceInfo >
{
diff --git a/dtrans/source/cnttype/mcnttype.hxx b/dtrans/source/cnttype/mcnttype.hxx
index e44e12261b21..a4126c6c6a53 100644
--- a/dtrans/source/cnttype/mcnttype.hxx
+++ b/dtrans/source/cnttype/mcnttype.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_SOURCE_CNTTYPE_MCNTTYPE_HXX
#define INCLUDED_DTRANS_SOURCE_CNTTYPE_MCNTTYPE_HXX
-#include <cppuhelper/compbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
@@ -29,7 +29,7 @@
#include <map>
class CMimeContentType : public
- cppu::WeakImplHelper1< com::sun::star::datatransfer::XMimeContentType >
+ cppu::WeakImplHelper< com::sun::star::datatransfer::XMimeContentType >
{
public:
CMimeContentType( const OUString& aCntType );
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx
index b67e6ac3e9f5..e538a7fc8525 100644
--- a/dtrans/source/generic/clipboardmanager.cxx
+++ b/dtrans/source/generic/clipboardmanager.cxx
@@ -33,7 +33,7 @@ using namespace std;
using ::dtrans::ClipboardManager;
ClipboardManager::ClipboardManager():
- WeakComponentImplHelper3< XClipboardManager, XEventListener, XServiceInfo > (m_aMutex),
+ WeakComponentImplHelper< XClipboardManager, XEventListener, XServiceInfo > (m_aMutex),
m_aDefaultName(OUString("default"))
{
}
diff --git a/dtrans/source/generic/clipboardmanager.hxx b/dtrans/source/generic/clipboardmanager.hxx
index a65e672f36a8..2d9a1d42baeb 100644
--- a/dtrans/source/generic/clipboardmanager.hxx
+++ b/dtrans/source/generic/clipboardmanager.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_SOURCE_GENERIC_CLIPBOARDMANAGER_HXX
#define INCLUDED_DTRANS_SOURCE_GENERIC_CLIPBOARDMANAGER_HXX
-#include <cppuhelper/compbase3.hxx>
+#include <cppuhelper/compbase.hxx>
#include <com/sun/star/datatransfer/clipboard/XClipboardManager.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -35,7 +35,7 @@ typedef ::std::map< OUString, ::com::sun::star::uno::Reference< ::com::sun::star
namespace dtrans
{
- class ClipboardManager : public ::cppu::WeakComponentImplHelper3 <
+ class ClipboardManager : public ::cppu::WeakComponentImplHelper <
::com::sun::star::datatransfer::clipboard::XClipboardManager,
::com::sun::star::lang::XEventListener,
::com::sun::star::lang::XServiceInfo >
diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx
index 42d8fc947ec0..31eed17cebd6 100644
--- a/dtrans/source/generic/generic_clipboard.cxx
+++ b/dtrans/source/generic/generic_clipboard.cxx
@@ -32,7 +32,7 @@ using namespace osl;
using ::dtrans::GenericClipboard;
GenericClipboard::GenericClipboard() :
- WeakComponentImplHelper4< XClipboardEx, XClipboardNotifier, XServiceInfo, XInitialization > (m_aMutex),
+ WeakComponentImplHelper< XClipboardEx, XClipboardNotifier, XServiceInfo, XInitialization > (m_aMutex),
m_bInitialized(sal_False)
{
}
diff --git a/dtrans/source/generic/generic_clipboard.hxx b/dtrans/source/generic/generic_clipboard.hxx
index cc412acaa5bc..542a847de0cd 100644
--- a/dtrans/source/generic/generic_clipboard.hxx
+++ b/dtrans/source/generic/generic_clipboard.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_SOURCE_GENERIC_GENERIC_CLIPBOARD_HXX
#define INCLUDED_DTRANS_SOURCE_GENERIC_GENERIC_CLIPBOARD_HXX
-#include <cppuhelper/compbase4.hxx>
+#include <cppuhelper/compbase.hxx>
#include <com/sun/star/datatransfer/clipboard/XClipboardEx.hpp>
@@ -34,7 +34,7 @@
namespace dtrans
{
- class GenericClipboard : public ::cppu::WeakComponentImplHelper4 < \
+ class GenericClipboard : public ::cppu::WeakComponentImplHelper < \
::com::sun::star::datatransfer::clipboard::XClipboardEx, \
::com::sun::star::datatransfer::clipboard::XClipboardNotifier, \
::com::sun::star::lang::XServiceInfo, \
diff --git a/dtrans/source/test/test_dtrans.cxx b/dtrans/source/test/test_dtrans.cxx
index 6c363b0abf36..5bc87e329e46 100644
--- a/dtrans/source/test/test_dtrans.cxx
+++ b/dtrans/source/test/test_dtrans.cxx
@@ -25,8 +25,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <cppuhelper/servicefactory.hxx>
-#include <cppuhelper/implbase1.hxx>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
@@ -64,7 +63,7 @@ const char * app = NULL;
// ClipboardOwner
-class ClipboardOwner : public WeakImplHelper1< XClipboardOwner >
+class ClipboardOwner : public WeakImplHelper< XClipboardOwner >
{
Reference< XClipboard > m_xClipboard;
Reference< XTransferable > m_xTransferable;
@@ -102,7 +101,7 @@ void SAL_CALL ClipboardOwner::lostOwnership( const Reference< XClipboard >& xCli
// ClipboardListener
-class ClipboardListener : public WeakImplHelper1< XClipboardListener >
+class ClipboardListener : public WeakImplHelper< XClipboardListener >
{
Reference< XClipboard > m_xClipboard;
Reference< XTransferable > m_xTransferable;
@@ -151,7 +150,7 @@ void SAL_CALL ClipboardListener::disposing( const EventObject& event )
// StringTransferable
-class StringTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
+class StringTransferable : public WeakImplHelper< XClipboardOwner, XTransferable >
{
public:
StringTransferable( );
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 9c0531559265..e5996bb4e5a5 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -54,7 +54,7 @@ namespace
/*XEventListener,*/
CWinClipboard::CWinClipboard( const Reference< XComponentContext >& rxContext, const OUString& aClipboardName ) :
- WeakComponentImplHelper3< XSystemClipboard, XFlushableClipboard, XServiceInfo >( m_aCbListenerMutex ),
+ WeakComponentImplHelper< XSystemClipboard, XFlushableClipboard, XServiceInfo >( m_aCbListenerMutex ),
m_xContext( rxContext )
{
m_pImpl.reset( new CWinClipbImpl( aClipboardName, this ) );
diff --git a/dtrans/source/win32/clipb/WinClipboard.hxx b/dtrans/source/win32/clipb/WinClipboard.hxx
index e40defb1dd58..6e74deb21dfa 100644
--- a/dtrans/source/win32/clipb/WinClipboard.hxx
+++ b/dtrans/source/win32/clipb/WinClipboard.hxx
@@ -22,7 +22,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-#include <cppuhelper/compbase3.hxx>
+#include <cppuhelper/compbase.hxx>
#include <com/sun/star/datatransfer/XTransferable.hpp>
#include <com/sun/star/datatransfer/clipboard/XClipboardEx.hpp>
#include <com/sun/star/datatransfer/clipboard/XClipboardOwner.hpp>
@@ -60,7 +60,7 @@ protected:
class CWinClipboard :
public CWinClipboardDummy,
- public cppu::WeakComponentImplHelper3<
+ public cppu::WeakComponentImplHelper<
::com::sun::star::datatransfer::clipboard::XSystemClipboard,
::com::sun::star::datatransfer::clipboard::XFlushableClipboard,
::com::sun::star::lang::XServiceInfo >
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx
index ffac848ead53..6d29d6f3959d 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -56,7 +56,7 @@ extern Reference< XTransferable > g_XTransferable;
unsigned __stdcall DndOleSTAFunc(LPVOID pParams);
DragSource::DragSource( const Reference<XComponentContext>& rxContext):
- WeakComponentImplHelper3< XDragSource, XInitialization, XServiceInfo >(m_mutex),
+ WeakComponentImplHelper< XDragSource, XInitialization, XServiceInfo >(m_mutex),
m_xContext( rxContext ),
// m_pcurrentContext_impl(0),
m_hAppWindow(0),
diff --git a/dtrans/source/win32/dnd/source.hxx b/dtrans/source/win32/dnd/source.hxx
index 1cbf840b5ecd..02fa41d77e73 100644
--- a/dtrans/source/win32/dnd/source.hxx
+++ b/dtrans/source/win32/dnd/source.hxx
@@ -24,7 +24,7 @@
#include <com/sun/star/datatransfer/dnd/XDragSourceContext.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <osl/mutex.hxx>
-#include <cppuhelper/compbase3.hxx>
+#include <cppuhelper/compbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include "../../inc/DtObjFactory.hxx"
#include "globals.hxx"
@@ -44,7 +44,7 @@ class SourceContext;
// ALT modifier is considered to effect a user selection of effects
class DragSource:
public MutexDummy,
- public WeakComponentImplHelper3<XDragSource, XInitialization, XServiceInfo>,
+ public WeakComponentImplHelper<XDragSource, XInitialization, XServiceInfo>,
public IDropSource
{
diff --git a/dtrans/source/win32/dnd/sourcecontext.cxx b/dtrans/source/win32/dnd/sourcecontext.cxx
index bbc3557a12a6..cee6c98bb4c2 100644
--- a/dtrans/source/win32/dnd/sourcecontext.cxx
+++ b/dtrans/source/win32/dnd/sourcecontext.cxx
@@ -26,7 +26,7 @@ using namespace com::sun::star::datatransfer::dnd::DNDConstants;
SourceContext::SourceContext( DragSource* pSource,
const Reference<XDragSourceListener>& listener):
- WeakComponentImplHelper1<XDragSourceContext>(m_mutex),
+ WeakComponentImplHelper<XDragSourceContext>(m_mutex),
m_pDragSource( pSource),
m_dragSource( static_cast<XDragSource*>( m_pDragSource) )
{
diff --git a/dtrans/source/win32/dnd/sourcecontext.hxx b/dtrans/source/win32/dnd/sourcecontext.hxx
index 3682ea2a9840..937c5d9ea1bf 100644
--- a/dtrans/source/win32/dnd/sourcecontext.hxx
+++ b/dtrans/source/win32/dnd/sourcecontext.hxx
@@ -19,9 +19,8 @@
#ifndef INCLUDED_DTRANS_SOURCE_WIN32_DND_SOURCECONTEXT_HXX
#define INCLUDED_DTRANS_SOURCE_WIN32_DND_SOURCECONTEXT_HXX
-#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/datatransfer/dnd/XDragSourceContext.hpp>
-#include <cppuhelper/compbase1.hxx>
+#include <cppuhelper/compbase.hxx>
#include "source.hxx"
@@ -38,7 +37,7 @@ using namespace ::com::sun::star::lang;
// An instance of SourceContext only lives as long as the drag and drop
// operation lasts.
class SourceContext: public MutexDummy,
- public WeakComponentImplHelper1<XDragSourceContext>
+ public WeakComponentImplHelper<XDragSourceContext>
{
DragSource* m_pDragSource;
Reference<XDragSource> m_dragSource;
diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx
index b80f6ce2c89b..cd051ba1101c 100644
--- a/dtrans/source/win32/dnd/target.cxx
+++ b/dtrans/source/win32/dnd/target.cxx
@@ -42,7 +42,7 @@ extern Reference< XTransferable > g_XTransferable;
DWORD WINAPI DndTargetOleSTAFunc(LPVOID pParams);
DropTarget::DropTarget( const Reference<XComponentContext>& rxContext):
- WeakComponentImplHelper3<XInitialization,XDropTarget, XServiceInfo>(m_mutex),
+ WeakComponentImplHelper<XInitialization,XDropTarget, XServiceInfo>(m_mutex),
m_hWnd( NULL),
m_threadIdWindow(0),
m_threadIdTarget(0),
diff --git a/dtrans/source/win32/dnd/target.hxx b/dtrans/source/win32/dnd/target.hxx
index 708f21a7e6d3..5011dfa74242 100644
--- a/dtrans/source/win32/dnd/target.hxx
+++ b/dtrans/source/win32/dnd/target.hxx
@@ -24,7 +24,7 @@
#include <com/sun/star/datatransfer/dnd/DropTargetDragEnterEvent.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/compbase3.hxx>
+#include <cppuhelper/compbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <osl/mutex.hxx>
@@ -53,7 +53,7 @@ using namespace ::com::sun::star::datatransfer::dnd;
// it is destroyed. Therefore no second instance may exist which was
// created in the same thread and still needs OLE.
class DropTarget: public MutexDummy,
- public WeakComponentImplHelper3< XInitialization, XDropTarget, XServiceInfo>
+ public WeakComponentImplHelper< XInitialization, XDropTarget, XServiceInfo>
{
private:
diff --git a/dtrans/source/win32/dnd/targetdragcontext.hxx b/dtrans/source/win32/dnd/targetdragcontext.hxx
index 8e0ad473e33e..a271d61abbe5 100644
--- a/dtrans/source/win32/dnd/targetdragcontext.hxx
+++ b/dtrans/source/win32/dnd/targetdragcontext.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_SOURCE_WIN32_DND_TARGETDRAGCONTEXT_HXX
#define INCLUDED_DTRANS_SOURCE_WIN32_DND_TARGETDRAGCONTEXT_HXX
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/datatransfer/dnd/XDropTargetDragContext.hpp>
#include <com/sun/star/datatransfer/DataFlavor.hpp>
@@ -31,7 +31,7 @@ using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-class TargetDragContext: public WeakImplHelper1<XDropTargetDragContext>
+class TargetDragContext: public WeakImplHelper<XDropTargetDragContext>
{
// some calls to the functions of XDropTargetDragContext are delegated
// to non-interface functions of m_pDropTarget
diff --git a/dtrans/source/win32/dnd/targetdropcontext.hxx b/dtrans/source/win32/dnd/targetdropcontext.hxx
index 4b945737cc7b..488137b62643 100644
--- a/dtrans/source/win32/dnd/targetdropcontext.hxx
+++ b/dtrans/source/win32/dnd/targetdropcontext.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_SOURCE_WIN32_DND_TARGETDROPCONTEXT_HXX
#define INCLUDED_DTRANS_SOURCE_WIN32_DND_TARGETDROPCONTEXT_HXX
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/datatransfer/dnd/XDropTargetDropContext.hpp>
#include "target.hxx"
@@ -30,7 +30,7 @@ using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-class TargetDropContext: public WeakImplHelper1<XDropTargetDropContext>
+class TargetDropContext: public WeakImplHelper<XDropTargetDropContext>
{
// calls to the functions of XDropTargetDropContext are delegated
// to non-interface functions of m_pDropTarget
diff --git a/dtrans/source/win32/dtobj/DOTransferable.hxx b/dtrans/source/win32/dtobj/DOTransferable.hxx
index 3090439f5228..74064cac8155 100644
--- a/dtrans/source/win32/dtobj/DOTransferable.hxx
+++ b/dtrans/source/win32/dtobj/DOTransferable.hxx
@@ -22,7 +22,7 @@
#include <com/sun/star/datatransfer/XTransferable.hpp>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include "DataFmtTransl.hxx"
#include <com/sun/star/datatransfer/XMimeContentTypeFactory.hpp>
#include <com/sun/star/datatransfer/XMimeContentType.hpp>
@@ -34,7 +34,7 @@
class CDTransObjFactory;
class CFormatEtc;
-class CDOTransferable : public ::cppu::WeakImplHelper2< ::com::sun::star::datatransfer::XTransferable,
+class CDOTransferable : public ::cppu::WeakImplHelper< ::com::sun::star::datatransfer::XTransferable,
::com::sun::star::datatransfer::XSystemTransferable>
{
public:
diff --git a/dtrans/source/win32/ftransl/ftransl.hxx b/dtrans/source/win32/ftransl/ftransl.hxx
index 6bf5ec2dd18b..138b3c7e9d6a 100644
--- a/dtrans/source/win32/ftransl/ftransl.hxx
+++ b/dtrans/source/win32/ftransl/ftransl.hxx
@@ -22,7 +22,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
-#include <cppuhelper/compbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/datatransfer/XDataFormatTranslator.hpp>
#include <com/sun/star/datatransfer/XMimeContentTypeFactory.hpp>
@@ -59,7 +59,7 @@ struct FormatEntry
// CDataFormatTranslator
class CDataFormatTranslator : public
- cppu::WeakImplHelper2< com::sun::star::datatransfer::XDataFormatTranslator, \
+ cppu::WeakImplHelper< com::sun::star::datatransfer::XDataFormatTranslator, \
com::sun::star::lang::XServiceInfo >
{
diff --git a/dtrans/source/win32/workbench/test_wincb.cxx b/dtrans/source/win32/workbench/test_wincb.cxx
index a2d0ff9ae7a6..8eb355de6d7b 100644
--- a/dtrans/source/win32/workbench/test_wincb.cxx
+++ b/dtrans/source/win32/workbench/test_wincb.cxx
@@ -26,8 +26,7 @@
#include <com/sun/star/datatransfer/clipboard/XClipboardEx.hpp>
#include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp>
#include <com/sun/star/lang/XComponent.hpp>
-#include <cppuhelper/implbase1.hxx>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <osl/diagnose.h>
@@ -71,7 +70,7 @@ using namespace ::com::sun::star::lang;
Reference< XTransferable > rXTransfRead;
HANDLE g_hEvtThreadWakeup;
-class CClipboardListener : public WeakImplHelper1 < XClipboardListener >
+class CClipboardListener : public WeakImplHelper < XClipboardListener >
{
public:
~CClipboardListener( );
@@ -96,7 +95,7 @@ void SAL_CALL CClipboardListener::changedContents( const ClipboardEvent& event )
//MessageBox( NULL, TEXT("Clipboard content changed"), TEXT("Info"), MB_OK | MB_ICONINFORMATION );
}
-class CTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
+class CTransferable : public WeakImplHelper< XClipboardOwner, XTransferable >
{
public:
CTransferable( );
diff --git a/dtrans/test/win32/dnd/sourcelistener.hxx b/dtrans/test/win32/dnd/sourcelistener.hxx
index 72b1b9aa28af..686d95c11025 100644
--- a/dtrans/test/win32/dnd/sourcelistener.hxx
+++ b/dtrans/test/win32/dnd/sourcelistener.hxx
@@ -20,7 +20,7 @@
#ifndef INCLUDED_DTRANS_TEST_WIN32_DND_SOURCELISTENER_HXX
#define INCLUDED_DTRANS_TEST_WIN32_DND_SOURCELISTENER_HXX
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/datatransfer/dnd/XDragSourceListener.hpp>
#include <com/sun/star/datatransfer/dnd/DragSourceDropEvent.hpp>
#include <com/sun/star/datatransfer/dnd/DragSourceDragEvent.hpp>
@@ -31,7 +31,7 @@ using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-class DragSourceListener: public WeakImplHelper1<XDragSourceListener>
+class DragSourceListener: public WeakImplHelper<XDragSourceListener>
{
// this is a window where dropped data are shown as text (only text)
public:
diff --git a/dtrans/test/win32/dnd/targetlistener.hxx b/dtrans/test/win32/dnd/targetlistener.hxx
index a70a669fb3b9..5064dc7b2efd 100644
--- a/dtrans/test/win32/dnd/targetlistener.hxx
+++ b/dtrans/test/win32/dnd/targetlistener.hxx
@@ -27,7 +27,7 @@
#if defined _MSC_VER
#pragma warning(pop)
#endif
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/datatransfer/dnd/XDropTargetListener.hpp>
#include <com/sun/star/datatransfer/dnd/DropTargetDropEvent.hpp>
#include <com/sun/star/datatransfer/dnd/DropTargetDragEvent.hpp>
@@ -39,7 +39,7 @@ using namespace ::cppu;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-class DropTargetListener: public WeakImplHelper1<XDropTargetListener>
+class DropTargetListener: public WeakImplHelper<XDropTargetListener>
{
// this is a window where dropped data are shown as text (only text)
HWND m_hEdit;
diff --git a/dtrans/test/win32/dnd/transferable.hxx b/dtrans/test/win32/dnd/transferable.hxx
index c69d610a2e90..428c9f7fa98b 100644
--- a/dtrans/test/win32/dnd/transferable.hxx
+++ b/dtrans/test/win32/dnd/transferable.hxx
@@ -25,7 +25,7 @@
#include <com/sun/star/datatransfer/clipboard/XClipboardNotifier.hpp>
#include <com/sun/star/datatransfer/clipboard/XClipboardEx.hpp>
#include <com/sun/star/lang/XComponent.hpp>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <osl/diagnose.h>
@@ -66,7 +66,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
-class CTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
+class CTransferable : public WeakImplHelper< XClipboardOwner, XTransferable >
{
public:
CTransferable( ){};