Kaydet (Commit) ac142d91 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

testtools: tdf#88206 replace cppu::WeakImplHelper*

with the variadic variants.

Change-Id: I6c77b9219c772f38005431fed7cd0f4132fab2b9
Reviewed-on: https://gerrit.libreoffice.org/18395Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 083c865f
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
#include "uno/environment.hxx" #include "uno/environment.hxx"
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
...@@ -102,7 +101,7 @@ bool checkEmpty(OUString const & string, char const * message) { ...@@ -102,7 +101,7 @@ bool checkEmpty(OUString const & string, char const * message) {
class TestBridgeImpl : public osl::DebugBase<TestBridgeImpl>, class TestBridgeImpl : public osl::DebugBase<TestBridgeImpl>,
public WeakImplHelper2< XMain, XServiceInfo > public WeakImplHelper< XMain, XServiceInfo >
{ {
Reference< XComponentContext > m_xContext; Reference< XComponentContext > m_xContext;
...@@ -305,7 +304,7 @@ static bool performSequenceOfCallTest( const Reference < XBridgeTest > &xLBT ) ...@@ -305,7 +304,7 @@ static bool performSequenceOfCallTest( const Reference < XBridgeTest > &xLBT )
return xLBT->sequenceOfCallTestPassed(); return xLBT->sequenceOfCallTestPassed();
} }
class ORecursiveCall : public WeakImplHelper1< XRecursiveCall > class ORecursiveCall : public WeakImplHelper< XRecursiveCall >
{ {
private: private:
Mutex m_mutex; Mutex m_mutex;
......
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
#include "com/sun/star/uno/XInterface.hpp" #include "com/sun/star/uno/XInterface.hpp"
#include "cppu/unotype.hxx" #include "cppu/unotype.hxx"
#include "cppuhelper/factory.hxx" #include "cppuhelper/factory.hxx"
#include "cppuhelper/implbase1.hxx" #include <cppuhelper/implbase.hxx>
#include "cppuhelper/implbase2.hxx"
#include "cppuhelper/implementationentry.hxx" #include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx" #include "cppuhelper/weak.hxx"
#include "rtl/string.h" #include "rtl/string.h"
...@@ -51,7 +50,7 @@ namespace { ...@@ -51,7 +50,7 @@ namespace {
namespace ttb = ::test::testtools::bridgetest; namespace ttb = ::test::testtools::bridgetest;
class Impl: class Impl:
public cppu::WeakImplHelper1<css::lang::XInitialization>, public cppu::WeakImplHelper<css::lang::XInitialization>,
private boost::noncopyable private boost::noncopyable
{ {
public: public:
...@@ -198,7 +197,7 @@ void Impl::initialize(css::uno::Sequence< css::uno::Any > const & arguments) ...@@ -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 > css::lang::XInitialization, ttb::XMultiBase1 >
{ {
public: public:
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <osl/time.h> #include <osl/time.h>
#include <cppuhelper/implbase3.hxx> #include <cppuhelper/implbase.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include "cppuhelper/exc_hlp.hxx" #include "cppuhelper/exc_hlp.hxx"
#include "cppuhelper/compbase_ex.hxx" #include "cppuhelper/compbase_ex.hxx"
...@@ -116,7 +116,7 @@ static void assign( TestData & rData, ...@@ -116,7 +116,7 @@ static void assign( TestData & rData,
class Test_Impl : class Test_Impl :
public osl::DebugBase<Test_Impl>, public osl::DebugBase<Test_Impl>,
public WeakImplHelper3< XBridgeTest2, XServiceInfo , XRecursiveCall > public WeakImplHelper< XBridgeTest2, XServiceInfo , XRecursiveCall >
{ {
TestData _aData, _aStructData; TestData _aData, _aStructData;
sal_Int32 m_nLastCallId; sal_Int32 m_nLastCallId;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp" #include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppu/unotype.hxx" #include "cppu/unotype.hxx"
#include "cppuhelper/implbase1.hxx" #include <cppuhelper/implbase.hxx>
#include "osl/diagnose.h" #include "osl/diagnose.h"
#include "osl/diagnose.hxx" #include "osl/diagnose.hxx"
#include "rtl/string.h" #include "rtl/string.h"
...@@ -44,7 +44,7 @@ static char const VALUE[] = "good"; ...@@ -44,7 +44,7 @@ static char const VALUE[] = "good";
class CurrentContext: class CurrentContext:
public ::osl::DebugBase< CurrentContext >, public ::osl::DebugBase< CurrentContext >,
public ::cppu::WeakImplHelper1< css::uno::XCurrentContext >, public ::cppu::WeakImplHelper< css::uno::XCurrentContext >,
private boost::noncopyable private boost::noncopyable
{ {
public: public:
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "sal/config.h" #include "sal/config.h"
#include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/RuntimeException.hpp"
#include "cppuhelper/implbase1.hxx" #include <cppuhelper/implbase.hxx>
#include "osl/diagnose.hxx" #include "osl/diagnose.hxx"
#include "sal/types.h" #include "sal/types.h"
#include "test/testtools/bridgetest/XCurrentContextChecker.hpp" #include "test/testtools/bridgetest/XCurrentContextChecker.hpp"
...@@ -32,7 +32,7 @@ namespace testtools { namespace bridgetest { ...@@ -32,7 +32,7 @@ namespace testtools { namespace bridgetest {
class SAL_DLLPRIVATE CurrentContextChecker : class SAL_DLLPRIVATE CurrentContextChecker :
public ::osl::DebugBase< CurrentContextChecker >, public ::osl::DebugBase< CurrentContextChecker >,
public ::cppu::WeakImplHelper1< public ::cppu::WeakImplHelper<
::test::testtools::bridgetest::XCurrentContextChecker > ::test::testtools::bridgetest::XCurrentContextChecker >
{ {
public: public:
......
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
#include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/RuntimeException.hpp"
#include "cppuhelper/implbase1.hxx" #include <cppuhelper/implbase.hxx>
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
#include "sal/types.h" #include "sal/types.h"
#include "test/testtools/bridgetest/XMulti.hpp" #include "test/testtools/bridgetest/XMulti.hpp"
namespace testtools { namespace bridgetest { namespace testtools { namespace bridgetest {
class Multi: public cppu::WeakImplHelper1< test::testtools::bridgetest::XMulti > class Multi: public cppu::WeakImplHelper< test::testtools::bridgetest::XMulti >
{ {
public: public:
Multi(): m_attribute1(0.0), m_attribute3(0.0) {} Multi(): m_attribute1(0.0), m_attribute3(0.0) {}
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include <uno/mapping.hxx> #include <uno/mapping.hxx>
#include <cppuhelper/factory.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/XServiceInfo.hpp>
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
...@@ -400,7 +400,7 @@ inline static Sequence< OUString > getSupportedServiceNames() ...@@ -400,7 +400,7 @@ inline static Sequence< OUString > getSupportedServiceNames()
} }
class TestImpl : public WeakImplHelper2< XServiceInfo, XMain > class TestImpl : public WeakImplHelper< XServiceInfo, XMain >
{ {
Reference< XMultiServiceFactory > _xSMgr; Reference< XMultiServiceFactory > _xSMgr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment