Kaydet (Commit) cfaebe5d authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

shell: tdf#88206 replace cppu::WeakImplHelper* etc.

with the variadic variants.

Change-Id: I0eb2efbd123198c7d8a99e9dd7c613f9b2b23c2d
Reviewed-on: https://gerrit.libreoffice.org/18286Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst f3c7e695
......@@ -39,7 +39,7 @@
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implbase2.hxx"
#include <cppuhelper/implbase.hxx>
#include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx"
#include "osl/diagnose.h"
......@@ -64,7 +64,7 @@ css::uno::Sequence< OUString > SAL_CALL getDefaultSupportedServiceNames() {
}
class Default:
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::beans::XPropertySet >,
private boost::noncopyable
{
......
......@@ -40,7 +40,7 @@
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implbase2.hxx"
#include <cppuhelper/implbase.hxx>
#include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx"
#include "rtl/string.h"
......@@ -65,7 +65,7 @@ css::uno::Sequence< OUString > SAL_CALL getServiceSupportedServiceNames() {
}
class Service:
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::beans::XPropertySet >,
private boost::noncopyable
{
......
......@@ -40,7 +40,7 @@
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implbase2.hxx"
#include <cppuhelper/implbase.hxx>
#include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx"
#include "rtl/string.h"
......@@ -65,7 +65,7 @@ css::uno::Sequence< OUString > SAL_CALL getServiceSupportedServiceNames() {
}
class Service:
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::beans::XPropertySet >,
private boost::noncopyable
{
......
......@@ -38,7 +38,7 @@
#include "com/sun/star/uno/XComponentContext.hpp"
#include "com/sun/star/uno/XCurrentContext.hpp"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implbase2.hxx"
#include <cppuhelper/implbase.hxx>
#include "cppuhelper/implementationentry.hxx"
#include "cppuhelper/weak.hxx"
#include "rtl/string.h"
......@@ -65,7 +65,7 @@ css::uno::Sequence< OUString > SAL_CALL getServiceSupportedServiceNames() {
}
class Service:
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
css::lang::XServiceInfo, css::beans::XPropertySet >,
private boost::noncopyable
{
......
......@@ -22,14 +22,14 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/string.hxx>
namespace uno = css::uno ;
namespace lang = css::lang ;
class LocaleBackend : public ::cppu::WeakImplHelper2 <
class LocaleBackend : public ::cppu::WeakImplHelper <
css::beans::XPropertySet,
lang::XServiceInfo > {
......
......@@ -22,7 +22,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/string.hxx>
// FIXME: stdio.h only for debugging...
......@@ -31,7 +31,7 @@
namespace uno = css::uno;
namespace lang = css::lang;
class MacOSXBackend : public ::cppu::WeakImplHelper2 <css::beans::XPropertySet, lang::XServiceInfo >
class MacOSXBackend : public ::cppu::WeakImplHelper <css::beans::XPropertySet, lang::XServiceInfo >
{
public:
......
......@@ -23,13 +23,13 @@
#include <com/sun/star/beans/Optional.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/string.hxx>
namespace uno = css::uno ;
namespace lang = css::lang ;
class WinInetBackend : public ::cppu::WeakImplHelper2 <
class WinInetBackend : public ::cppu::WeakImplHelper <
css::beans::XPropertySet,
lang::XServiceInfo > {
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILMSG_HXX
#define INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILMSG_HXX
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
......@@ -33,7 +33,7 @@
class CmdMailMsg :
public cppu::WeakImplHelper2<
public cppu::WeakImplHelper<
::com::sun::star::system::XSimpleMailMessage2,
::com::sun::star::container::XNameAccess >
{
......
......@@ -74,7 +74,7 @@ namespace // private
CmdMailSuppl::CmdMailSuppl( const Reference< XComponentContext >& xContext ) :
WeakImplHelper3< XSimpleMailClientSupplier, XSimpleMailClient, XServiceInfo >()
WeakImplHelper< XSimpleMailClientSupplier, XSimpleMailClient, XServiceInfo >()
{
m_xConfigurationProvider = theDefaultProvider::get(xContext);
}
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILSUPPL_HXX
#define INCLUDED_SHELL_SOURCE_CMDMAIL_CMDMAILSUPPL_HXX
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
......@@ -35,7 +35,7 @@
class CmdMailSuppl :
public cppu::WeakImplHelper3<
public cppu::WeakImplHelper<
com::sun::star::system::XSimpleMailClientSupplier,
com::sun::star::system::XSimpleMailClient,
com::sun::star::lang::XServiceInfo >
......
......@@ -13,11 +13,11 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
namespace shell { namespace sessioninstall
{
class SyncDbusSessionHelper : public ::cppu::WeakImplHelper1< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper >
class SyncDbusSessionHelper : public ::cppu::WeakImplHelper< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper >
{
public:
SyncDbusSessionHelper(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext> const&);
......
......@@ -82,7 +82,7 @@ void escapeForShell( OStringBuffer & rBuffer, const OString & rURL)
ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) :
WeakImplHelper2< XSystemShellExecute, XServiceInfo >(),
WeakImplHelper< XSystemShellExecute, XServiceInfo >(),
m_xContext(xContext)
{
try {
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_UNIX_EXEC_SHELLEXEC_HXX
#define INCLUDED_SHELL_SOURCE_UNIX_EXEC_SHELLEXEC_HXX
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <rtl/strbuf.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
......@@ -32,7 +32,7 @@
// class declaration
class ShellExec : public ::cppu::WeakImplHelper2< com::sun::star::system::XSystemShellExecute, com::sun::star::lang::XServiceInfo >
class ShellExec : public ::cppu::WeakImplHelper< com::sun::star::system::XSystemShellExecute, com::sun::star::lang::XServiceInfo >
{
OString m_aDesktopEnvironment;
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
......
......@@ -245,7 +245,7 @@ namespace // private
CSysShExec::CSysShExec( const Reference< css::uno::XComponentContext >& xContext ) :
WeakComponentImplHelper2< XSystemShellExecute, XServiceInfo >( m_aMutex ),
WeakComponentImplHelper< XSystemShellExecute, XServiceInfo >( m_aMutex ),
m_xContext(xContext)
{
/*
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_WIN32_SYSSHEXEC_HXX
#define INCLUDED_SHELL_SOURCE_WIN32_SYSSHEXEC_HXX
#include <cppuhelper/compbase2.hxx>
#include <cppuhelper/compbase.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
......@@ -39,7 +39,7 @@ protected:
class CSysShExec :
public CSysShExecBase,
public cppu::WeakComponentImplHelper2<
public cppu::WeakComponentImplHelper<
com::sun::star::system::XSystemShellExecute,
com::sun::star::lang::XServiceInfo >
{
......
......@@ -20,12 +20,13 @@
#ifndef INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILCLIENT_HXX
#define INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILCLIENT_HXX
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/system/XSimpleMailClient.hpp>
#include <vector>
class CSmplMailClient : public cppu::WeakImplHelper1<css::system::XSimpleMailClient>
class CSmplMailClient : public cppu::WeakImplHelper<css::system::XSimpleMailClient>
{
public:
virtual css::uno::Reference<css::system::XSimpleMailMessage> SAL_CALL createSimpleMailMessage()
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILMSG_HXX
#define INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILMSG_HXX
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/system/XSimpleMailMessage2.hpp>
......@@ -30,7 +30,7 @@
class CSmplMailMsg :
public cppu::WeakImplHelper1< com::sun::star::system::XSimpleMailMessage2 >
public cppu::WeakImplHelper< com::sun::star::system::XSimpleMailMessage2 >
{
public:
CSmplMailMsg( );
......
......@@ -46,7 +46,7 @@ namespace // private
} // end private namespace
CSmplMailSuppl::CSmplMailSuppl() :
WeakComponentImplHelper2<XSimpleMailClientSupplier, XServiceInfo>(m_aMutex)
WeakComponentImplHelper<XSimpleMailClientSupplier, XServiceInfo>(m_aMutex)
{
}
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILSUPPL_HXX
#define INCLUDED_SHELL_SOURCE_WIN32_SIMPLEMAIL_SMPLMAILSUPPL_HXX
#include <cppuhelper/compbase2.hxx>
#include <cppuhelper/compbase.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/system/XSimpleMailClientSupplier.hpp>
......@@ -36,7 +36,7 @@ protected:
class CSmplMailSuppl :
public CSmplMailSupplBase,
public cppu::WeakComponentImplHelper2<
public cppu::WeakComponentImplHelper<
com::sun::star::system::XSimpleMailClientSupplier,
com::sun::star::lang::XServiceInfo >
{
......
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