summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-09-08 10:31:57 +0900
committerNoel Grandin <noelgrandin@gmail.com>2015-09-09 08:12:15 +0000
commitac142d91b6c141f4f2b8ee4966be8c9b2eb63e82 (patch)
treeae9b4975642fc0b6c9cd4c843d6180a00d9f5c5d /testtools
parent083c865f9af70a12dfed52b07785e303eb61b397 (diff)
testtools: tdf#88206 replace cppu::WeakImplHelper*
with the variadic variants. Change-Id: I6c77b9219c772f38005431fed7cd0f4132fab2b9 Reviewed-on: https://gerrit.libreoffice.org/18395 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/bridgetest.cxx7
-rw-r--r--testtools/source/bridgetest/constructors.cxx7
-rw-r--r--testtools/source/bridgetest/cppobj.cxx4
-rw-r--r--testtools/source/bridgetest/currentcontextchecker.cxx4
-rw-r--r--testtools/source/bridgetest/currentcontextchecker.hxx4
-rw-r--r--testtools/source/bridgetest/multi.hxx4
-rw-r--r--testtools/source/performance/ubtest.cxx4
7 files changed, 16 insertions, 18 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx
index d17900feb874..42889020114b 100644
--- a/testtools/source/bridgetest/bridgetest.cxx
+++ b/testtools/source/bridgetest/bridgetest.cxx
@@ -32,8 +32,7 @@
#include "uno/environment.hxx"
#include <cppuhelper/factory.hxx>
-#include <cppuhelper/implbase2.hxx>
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -102,7 +101,7 @@ bool checkEmpty(OUString const & string, char const * message) {
class TestBridgeImpl : public osl::DebugBase<TestBridgeImpl>,
- public WeakImplHelper2< XMain, XServiceInfo >
+ public WeakImplHelper< XMain, XServiceInfo >
{
Reference< XComponentContext > m_xContext;
@@ -305,7 +304,7 @@ static bool performSequenceOfCallTest( const Reference < XBridgeTest > &xLBT )
return xLBT->sequenceOfCallTestPassed();
}
-class ORecursiveCall : public WeakImplHelper1< XRecursiveCall >
+class ORecursiveCall : public WeakImplHelper< XRecursiveCall >
{
private:
Mutex m_mutex;
diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx
index 3eb4d9716012..9212e9751388 100644
--- a/testtools/source/bridgetest/constructors.cxx
+++ b/testtools/source/bridgetest/constructors.cxx
@@ -32,8 +32,7 @@
#include "com/sun/star/uno/XInterface.hpp"
#include "cppu/unotype.hxx"
#include "cppuhelper/factory.hxx"
-#include "cppuhelper/implbase1.hxx"
-#include "cppuhelper/implbase2.hxx"
+#include <cppuhelper/implbase.hxx>
#include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx"
#include "rtl/string.h"
@@ -51,7 +50,7 @@ namespace {
namespace ttb = ::test::testtools::bridgetest;
class Impl:
- public cppu::WeakImplHelper1<css::lang::XInitialization>,
+ public cppu::WeakImplHelper<css::lang::XInitialization>,
private boost::noncopyable
{
public:
@@ -198,7 +197,7 @@ void Impl::initialize(css::uno::Sequence< css::uno::Any > const & arguments)
}
-class Impl2: public ::cppu::WeakImplHelper2<
+class Impl2: public ::cppu::WeakImplHelper<
css::lang::XInitialization, ttb::XMultiBase1 >
{
public:
diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx
index 4b74e4a73b38..8e4ed6a0e44b 100644
--- a/testtools/source/bridgetest/cppobj.cxx
+++ b/testtools/source/bridgetest/cppobj.cxx
@@ -26,7 +26,7 @@
#include <osl/mutex.hxx>
#include <osl/time.h>
-#include <cppuhelper/implbase3.hxx>
+#include <cppuhelper/implbase.hxx>
#include <cppuhelper/factory.hxx>
#include "cppuhelper/exc_hlp.hxx"
#include "cppuhelper/compbase_ex.hxx"
@@ -116,7 +116,7 @@ static void assign( TestData & rData,
class Test_Impl :
public osl::DebugBase<Test_Impl>,
- public WeakImplHelper3< XBridgeTest2, XServiceInfo , XRecursiveCall >
+ public WeakImplHelper< XBridgeTest2, XServiceInfo , XRecursiveCall >
{
TestData _aData, _aStructData;
sal_Int32 m_nLastCallId;
diff --git a/testtools/source/bridgetest/currentcontextchecker.cxx b/testtools/source/bridgetest/currentcontextchecker.cxx
index adb0fb3a5967..17ca1cc7246d 100644
--- a/testtools/source/bridgetest/currentcontextchecker.cxx
+++ b/testtools/source/bridgetest/currentcontextchecker.cxx
@@ -28,7 +28,7 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppu/unotype.hxx"
-#include "cppuhelper/implbase1.hxx"
+#include <cppuhelper/implbase.hxx>
#include "osl/diagnose.h"
#include "osl/diagnose.hxx"
#include "rtl/string.h"
@@ -44,7 +44,7 @@ static char const VALUE[] = "good";
class CurrentContext:
public ::osl::DebugBase< CurrentContext >,
- public ::cppu::WeakImplHelper1< css::uno::XCurrentContext >,
+ public ::cppu::WeakImplHelper< css::uno::XCurrentContext >,
private boost::noncopyable
{
public:
diff --git a/testtools/source/bridgetest/currentcontextchecker.hxx b/testtools/source/bridgetest/currentcontextchecker.hxx
index 3c728c9ca803..f16cd5bea93b 100644
--- a/testtools/source/bridgetest/currentcontextchecker.hxx
+++ b/testtools/source/bridgetest/currentcontextchecker.hxx
@@ -23,7 +23,7 @@
#include "sal/config.h"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
-#include "cppuhelper/implbase1.hxx"
+#include <cppuhelper/implbase.hxx>
#include "osl/diagnose.hxx"
#include "sal/types.h"
#include "test/testtools/bridgetest/XCurrentContextChecker.hpp"
@@ -32,7 +32,7 @@ namespace testtools { namespace bridgetest {
class SAL_DLLPRIVATE CurrentContextChecker :
public ::osl::DebugBase< CurrentContextChecker >,
- public ::cppu::WeakImplHelper1<
+ public ::cppu::WeakImplHelper<
::test::testtools::bridgetest::XCurrentContextChecker >
{
public:
diff --git a/testtools/source/bridgetest/multi.hxx b/testtools/source/bridgetest/multi.hxx
index 055d09cb9f3a..e02645eb080c 100644
--- a/testtools/source/bridgetest/multi.hxx
+++ b/testtools/source/bridgetest/multi.hxx
@@ -24,14 +24,14 @@
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
-#include "cppuhelper/implbase1.hxx"
+#include <cppuhelper/implbase.hxx>
#include "rtl/ustring.hxx"
#include "sal/types.h"
#include "test/testtools/bridgetest/XMulti.hpp"
namespace testtools { namespace bridgetest {
-class Multi: public cppu::WeakImplHelper1< test::testtools::bridgetest::XMulti >
+class Multi: public cppu::WeakImplHelper< test::testtools::bridgetest::XMulti >
{
public:
Multi(): m_attribute1(0.0), m_attribute3(0.0) {}
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx
index 807b5bde78cc..2b1c83401de6 100644
--- a/testtools/source/performance/ubtest.cxx
+++ b/testtools/source/performance/ubtest.cxx
@@ -48,7 +48,7 @@
#include <uno/mapping.hxx>
#include <cppuhelper/factory.hxx>
-#include <cppuhelper/implbase2.hxx>
+#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -400,7 +400,7 @@ inline static Sequence< OUString > getSupportedServiceNames()
}
-class TestImpl : public WeakImplHelper2< XServiceInfo, XMain >
+class TestImpl : public WeakImplHelper< XServiceInfo, XMain >
{
Reference< XMultiServiceFactory > _xSMgr;