Skip to content

Commit

Permalink
tdf#88206 replace cppu::WeakImplHelper* etc.
Browse files Browse the repository at this point in the history
with the variadic variants, in configmgr.

Change-Id: I0cf82ab487ed879aa385d6065e908e347c0778e8
Reviewed-on: https://gerrit.libreoffice.org/16964
Tested-by: Jenkins <[email protected]>
Reviewed-by: Noel Grandin <[email protected]>
  • Loading branch information
tabe authored and grandinj committed Jul 13, 2015
1 parent 7f32aec commit 5d75fc9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
6 changes: 2 additions & 4 deletions configmgr/inc/pch/precompiled_configmgr.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@
#include <config_folders.h>
#include <cppu/unotype.hxx>
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase5.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/queryinterface.hxx>
Expand Down
4 changes: 2 additions & 2 deletions configmgr/qa/unit/test.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/conditn.hxx>
#include <osl/thread.h>
#include <osl/thread.hxx>
Expand Down Expand Up @@ -111,7 +111,7 @@ class Test: public CppUnit::TestFixture {
};

class RecursiveTest:
public cppu::WeakImplHelper1< css::beans::XPropertyChangeListener >
public cppu::WeakImplHelper< css::beans::XPropertyChangeListener >
{
public:
RecursiveTest(Test const & theTest, int count, bool * destroyed);
Expand Down
8 changes: 4 additions & 4 deletions configmgr/source/configurationprovider.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
#include <com/sun/star/util/XRefreshable.hpp>
#include <cppu/unotype.hxx>
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase5.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
Expand Down Expand Up @@ -81,7 +81,7 @@ void badNodePath() {
}

typedef
cppu::WeakComponentImplHelper5<
cppu::WeakComponentImplHelper<
css::lang::XServiceInfo, css::lang::XMultiServiceFactory,
css::util::XRefreshable, css::util::XFlushable,
css::lang::XLocalizable >
Expand Down Expand Up @@ -369,7 +369,7 @@ void Service::flushModifications() const {
}

class Factory:
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
css::lang::XSingleComponentFactory, css::lang::XServiceInfo >
{
public:
Expand Down
7 changes: 3 additions & 4 deletions configmgr/source/configurationregistry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/util/XFlushable.hpp>
#include <cppu/unotype.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <osl/mutex.hxx>
Expand All @@ -68,7 +67,7 @@ namespace configmgr { namespace configuration_registry {
namespace {

class Service:
public cppu::WeakImplHelper3<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::registry::XSimpleRegistry,
css::util::XFlushable >
{
Expand Down Expand Up @@ -152,7 +151,7 @@ class Service:
};

class RegistryKey:
public cppu::WeakImplHelper1< css::registry::XRegistryKey >
public cppu::WeakImplHelper< css::registry::XRegistryKey >
{
public:
RegistryKey(Service & service, css::uno::Any const & value):
Expand Down
4 changes: 2 additions & 2 deletions configmgr/source/readonlyaccess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <osl/mutex.hxx>
Expand All @@ -41,7 +41,7 @@ namespace configmgr { namespace read_only_access {
namespace {

class Service:
public cppu::WeakImplHelper3<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::lang::XInitialization,
css::container::XHierarchicalNameAccess >
{
Expand Down
4 changes: 2 additions & 2 deletions configmgr/source/readwriteaccess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/util/ChangesSet.hpp>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <osl/mutex.hxx>
Expand All @@ -43,7 +43,7 @@ namespace configmgr { namespace read_write_access {
namespace {

class Service:
public cppu::WeakImplHelper3<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::lang::XInitialization,
css::configuration::XReadWriteAccess >
{
Expand Down
4 changes: 2 additions & 2 deletions configmgr/source/update.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weak.hxx>
#include <osl/mutex.hxx>
#include <rtl/ref.hxx>
Expand Down Expand Up @@ -57,7 +57,7 @@ std::set< OUString > seqToSet(
}

class Service:
public cppu::WeakImplHelper1< css::configuration::XUpdate >
public cppu::WeakImplHelper< css::configuration::XUpdate >
{
public:
explicit Service(css::uno::Reference< css::uno::XComponentContext > const context):
Expand Down

0 comments on commit 5d75fc9

Please sign in to comment.