diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-07-10 17:50:12 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-20 07:06:22 +0000 |
commit | a890a7696ff5dfc3ec8a012ba59cc04db4a1473d (patch) | |
tree | 9e0d23aadb43f2bbdf3bac2db8aff76307bda5fc /comphelper | |
parent | 3f0677b86f4831b011a2baece85cf93c68646cd5 (diff) |
tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants, for comphelper.
This also includes extra changes in other modules
required accordingly.
Change-Id: Id1537f46f1c90f760a0d8987a6dafa0e1da03b8f
Reviewed-on: https://gerrit.libreoffice.org/16929
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper')
18 files changed, 41 insertions, 47 deletions
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx index d0de0e32d18a..35bdc06a823f 100644 --- a/comphelper/inc/pch/precompiled_comphelper.hxx +++ b/comphelper/inc/pch/precompiled_comphelper.hxx @@ -177,10 +177,7 @@ #include <cppuhelper/compbase3.hxx> #include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/factory.hxx> -#include <cppuhelper/implbase1.hxx> -#include <cppuhelper/implbase2.hxx> -#include <cppuhelper/implbase3.hxx> -#include <cppuhelper/implbase4.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.hxx> diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx index 8971a4312dfd..478c0fb9f6a3 100644 --- a/comphelper/qa/string/test_string.cxx +++ b/comphelper/qa/string/test_string.cxx @@ -18,7 +18,7 @@ */ #include <comphelper/string.hxx> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/i18n/CharType.hpp> #include "cppunit/TestAssert.h" @@ -88,7 +88,7 @@ void TestString::testIsdigitAsciiString() using namespace ::com::sun::star; -class testCollator : public cppu::WeakImplHelper1< i18n::XCollator > +class testCollator : public cppu::WeakImplHelper< i18n::XCollator > { public: virtual sal_Int32 SAL_CALL compareSubstring( @@ -123,7 +123,7 @@ public: #define IS_DIGIT(CHAR) (((CHAR) >= 48) && ((CHAR <= 57))) -class testBreakIterator : public cppu::WeakImplHelper1< i18n::XBreakIterator > +class testBreakIterator : public cppu::WeakImplHelper< i18n::XBreakIterator > { public: virtual sal_Int32 SAL_CALL nextCharacters( const OUString&, sal_Int32, diff --git a/comphelper/source/compare/AnyCompareFactory.cxx b/comphelper/source/compare/AnyCompareFactory.cxx index b3d58700be3f..7596207379e6 100644 --- a/comphelper/source/compare/AnyCompareFactory.cxx +++ b/comphelper/source/compare/AnyCompareFactory.cxx @@ -25,8 +25,7 @@ #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/beans/PropertyValue.hpp> -#include <cppuhelper/implbase3.hxx> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XInitialization.hpp> @@ -39,7 +38,7 @@ using namespace com::sun::star::ucb; using namespace com::sun::star::lang; using namespace com::sun::star::i18n; -class AnyCompare : public ::cppu::WeakImplHelper1< XAnyCompare > +class AnyCompare : public ::cppu::WeakImplHelper< XAnyCompare > { Reference< XCollator > m_xCollator; @@ -54,7 +53,7 @@ public: virtual sal_Int16 SAL_CALL compare( const Any& any1, const Any& any2 ) throw(RuntimeException, std::exception) SAL_OVERRIDE; }; -class AnyCompareFactory : public cppu::WeakImplHelper3< XAnyCompareFactory, XInitialization, XServiceInfo > +class AnyCompareFactory : public cppu::WeakImplHelper< XAnyCompareFactory, XInitialization, XServiceInfo > { Reference< XAnyCompare > m_xAnyCompare; Reference< XComponentContext > m_xContext; diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx index b8b91f3ee48f..b6c2776742a3 100644 --- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx +++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx @@ -23,7 +23,7 @@ #include <com/sun/star/container/XIndexContainer.hpp> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/beans/PropertyValue.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <cppuhelper/supportsservice.hxx> @@ -33,7 +33,7 @@ using namespace com::sun::star; typedef std::vector < uno::Sequence< beans::PropertyValue > > IndexedPropertyValues; -class IndexedPropertyValuesContainer : public cppu::WeakImplHelper2< container::XIndexContainer, lang::XServiceInfo > +class IndexedPropertyValuesContainer : public cppu::WeakImplHelper< container::XIndexContainer, lang::XServiceInfo > { public: IndexedPropertyValuesContainer() throw(); diff --git a/comphelper/source/container/NamedPropertyValuesContainer.cxx b/comphelper/source/container/NamedPropertyValuesContainer.cxx index 88ff7f9bfc02..fd569eb46112 100644 --- a/comphelper/source/container/NamedPropertyValuesContainer.cxx +++ b/comphelper/source/container/NamedPropertyValuesContainer.cxx @@ -24,7 +24,7 @@ #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/beans/PropertyValue.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <cppuhelper/supportsservice.hxx> #include <map> @@ -34,7 +34,7 @@ using namespace com::sun::star; typedef std::map< OUString, uno::Sequence<beans::PropertyValue> > NamedPropertyValues; -class NamedPropertyValuesContainer : public cppu::WeakImplHelper2< container::XNameContainer, lang::XServiceInfo > +class NamedPropertyValuesContainer : public cppu::WeakImplHelper< container::XNameContainer, lang::XServiceInfo > { public: NamedPropertyValuesContainer() throw(); diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 9338d711f807..06c05bebeda7 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -32,7 +32,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <cppuhelper/compbase3.hxx> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <rtl/math.hxx> #include <rtl/ustrbuf.hxx> @@ -286,8 +286,8 @@ namespace comphelper }; - typedef ::cppu::WeakImplHelper1 < XEnumeration - > MapEnumeration_Base; + typedef ::cppu::WeakImplHelper < XEnumeration + > MapEnumeration_Base; class MapEnumeration :public ComponentBase ,public MapEnumeration_Base { diff --git a/comphelper/source/container/namecontainer.cxx b/comphelper/source/container/namecontainer.cxx index c296d5373c97..e282383b6676 100644 --- a/comphelper/source/container/namecontainer.cxx +++ b/comphelper/source/container/namecontainer.cxx @@ -22,7 +22,7 @@ #include <map> #include <comphelper/namecontainer.hxx> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include <osl/mutex.hxx> @@ -37,7 +37,7 @@ namespace comphelper }; /** this is the base helper class for NameContainer thats also declared in this header. */ - class NameContainer : public ::cppu::WeakImplHelper1< ::com::sun::star::container::XNameContainer >, private NameContainerImpl + class NameContainer : public ::cppu::WeakImplHelper< ::com::sun::star::container::XNameContainer >, private NameContainerImpl { public: explicit NameContainer( ::com::sun::star::uno::Type aType ); diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 5074a577b185..19e534ce75fb 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -40,8 +40,7 @@ #include <com/sun/star/script/XScriptListener.hpp> #include <cppuhelper/weak.hxx> #include <cppuhelper/interfacecontainer.hxx> -#include <cppuhelper/implbase1.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <deque> #include <algorithm> @@ -76,7 +75,7 @@ struct AttacherIndex_Impl class ImplEventAttacherManager - : public WeakImplHelper2< XEventAttacherManager, XPersistObject > + : public WeakImplHelper< XEventAttacherManager, XPersistObject > { friend class AttacherAllListener_Impl; ::std::deque< AttacherIndex_Impl > aIndex; @@ -143,7 +142,7 @@ private: // Implementation of an EventAttacher-subclass 'AllListeners', which // only passes individual events of the general AllListeners. -class AttacherAllListener_Impl : public WeakImplHelper1< XAllListener > +class AttacherAllListener_Impl : public WeakImplHelper< XAllListener > { ImplEventAttacherManager* mpManager; Reference< XEventAttacherManager > xManager; diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx index 5e739edf9205..ef2e058f8020 100644 --- a/comphelper/source/misc/accessiblekeybindinghelper.cxx +++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx @@ -20,7 +20,6 @@ #include <comphelper/accessiblekeybindinghelper.hxx> - namespace comphelper { @@ -41,7 +40,7 @@ namespace comphelper OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper( const OAccessibleKeyBindingHelper& rHelper ) - : cppu::WeakImplHelper1<XAccessibleKeyBinding>( rHelper ) + : cppu::WeakImplHelper<XAccessibleKeyBinding>( rHelper ) , m_aKeyBindings( rHelper.m_aKeyBindings ) { } diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index 26d56ca1f709..86e37e149312 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/task/PasswordRequest.hpp> #include <com/sun/star/task/XInteractionAbort.hpp> #include <com/sun/star/task/XInteractionPassword2.hpp> +#include <cppuhelper/implbase.hxx> using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Type; @@ -45,7 +46,7 @@ namespace comphelper { -class AbortContinuation : public ::cppu::WeakImplHelper1< XInteractionAbort > +class AbortContinuation : public ::cppu::WeakImplHelper< XInteractionAbort > { public: virtual void SAL_CALL select() throw( RuntimeException, std::exception ) SAL_OVERRIDE {} @@ -53,7 +54,7 @@ public: -class PasswordContinuation : public ::cppu::WeakImplHelper1< XInteractionPassword2 > +class PasswordContinuation : public ::cppu::WeakImplHelper< XInteractionPassword2 > { public: inline explicit PasswordContinuation() : mbReadOnly( false ), mbSelected( false ) {} diff --git a/comphelper/source/misc/documentiologring.hxx b/comphelper/source/misc/documentiologring.hxx index 0b34bb4f5774..13af7b53635f 100644 --- a/comphelper/source/misc/documentiologring.hxx +++ b/comphelper/source/misc/documentiologring.hxx @@ -25,14 +25,14 @@ #include <com/sun/star/lang/XInitialization.hpp> #include <osl/mutex.hxx> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase.hxx> #define SIMPLELOGRING_SIZE 256 namespace comphelper { -class OSimpleLogRing : public ::cppu::WeakImplHelper3< ::com::sun::star::logging::XSimpleLogRing, +class OSimpleLogRing : public ::cppu::WeakImplHelper< ::com::sun::star::logging::XSimpleLogRing, ::com::sun::star::lang::XInitialization, ::com::sun::star::lang::XServiceInfo > { diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx index 06908eff869a..abc9b348f249 100644 --- a/comphelper/source/misc/instancelocker.hxx +++ b/comphelper/source/misc/instancelocker.hxx @@ -30,8 +30,7 @@ #include <com/sun/star/embed/Actions.hpp> #include <cppuhelper/weakref.hxx> #include <osl/mutex.hxx> -#include <cppuhelper/implbase3.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/interfacecontainer.h> @@ -39,7 +38,7 @@ class OLockListener; // the service is implemented as a wrapper to be able to die by refcount // the disposing mechanics is required for java related scenarios -class OInstanceLocker : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XComponent, +class OInstanceLocker : public ::cppu::WeakImplHelper< ::com::sun::star::lang::XComponent, ::com::sun::star::lang::XInitialization, ::com::sun::star::lang::XServiceInfo > { @@ -83,7 +82,7 @@ public: }; -class OLockListener : public ::cppu::WeakImplHelper2< ::com::sun::star::util::XCloseListener, +class OLockListener : public ::cppu::WeakImplHelper< ::com::sun::star::util::XCloseListener, ::com::sun::star::frame::XTerminateListener > { ::osl::Mutex m_aMutex; diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx index 349288571f55..0554d1c652d0 100644 --- a/comphelper/source/misc/officerestartmanager.hxx +++ b/comphelper/source/misc/officerestartmanager.hxx @@ -26,12 +26,12 @@ #include <com/sun/star/awt/XCallback.hpp> #include <osl/mutex.hxx> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase.hxx> namespace comphelper { -class OOfficeRestartManager : public ::cppu::WeakImplHelper3< ::com::sun::star::task::XRestartManager +class OOfficeRestartManager : public ::cppu::WeakImplHelper< ::com::sun::star::task::XRestartManager , ::com::sun::star::awt::XCallback , ::com::sun::star::lang::XServiceInfo > { diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx index ca79f609aa93..7ed429e0d7cd 100644 --- a/comphelper/source/misc/servicedecl.cxx +++ b/comphelper/source/misc/servicedecl.cxx @@ -22,7 +22,7 @@ #include <osl/diagnose.h> #include <rtl/string.hxx> #include <rtl/ustrbuf.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <comphelper/sequence.hxx> #include <com/sun/star/lang/XSingleComponentFactory.hpp> #include <vector> @@ -33,7 +33,7 @@ namespace comphelper { namespace service_decl { class ServiceDecl::Factory : - public cppu::WeakImplHelper2<lang::XSingleComponentFactory, + public cppu::WeakImplHelper<lang::XSingleComponentFactory, lang::XServiceInfo>, private boost::noncopyable { diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.hxx b/comphelper/source/officeinstdir/officeinstallationdirectories.hxx index 0d0ab574f976..8cc740747c33 100644 --- a/comphelper/source/officeinstdir/officeinstallationdirectories.hxx +++ b/comphelper/source/officeinstdir/officeinstallationdirectories.hxx @@ -21,7 +21,7 @@ #define INCLUDED_COMPHELPER_SOURCE_OFFICEINSTDIR_OFFICEINSTALLATIONDIRECTORIES_HXX #include <osl/mutex.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/XComponentContext.hpp> @@ -31,7 +31,7 @@ namespace comphelper { -typedef cppu::WeakImplHelper2< +typedef cppu::WeakImplHelper< com::sun::star::util::XOfficeInstallationDirectories, com::sun::star::lang::XServiceInfo > UnoImplBase; diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx index 3efe2d1126f2..d4a4ebf8d502 100644 --- a/comphelper/source/streaming/memorystream.cxx +++ b/comphelper/source/streaming/memorystream.cxx @@ -26,14 +26,14 @@ #include <com/sun/star/io/XSeekableInputStream.hpp> #include <com/sun/star/io/XTruncate.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include <cppuhelper/implbase4.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include <string.h> #include <vector> using ::cppu::OWeakObject; -using ::cppu::WeakImplHelper4; +using ::cppu::WeakImplHelper; using namespace ::com::sun::star::io; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -42,7 +42,7 @@ using namespace ::osl; namespace comphelper { -class UNOMemoryStream : public WeakImplHelper4 < XStream, XSeekableInputStream, XOutputStream, XTruncate > +class UNOMemoryStream : public WeakImplHelper< XStream, XSeekableInputStream, XOutputStream, XTruncate > { public: UNOMemoryStream(); diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx index 1ea60fa5a63f..233cc8dc6524 100644 --- a/comphelper/source/streaming/seqinputstreamserv.cxx +++ b/comphelper/source/streaming/seqinputstreamserv.cxx @@ -26,7 +26,7 @@ #include <osl/mutex.hxx> #include <cppuhelper/factory.hxx> #include <cppuhelper/implementationentry.hxx> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <comphelper/seqstream.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -41,7 +41,7 @@ using namespace ::com::sun::star; namespace { class SequenceInputStreamService: - public ::cppu::WeakImplHelper3< + public ::cppu::WeakImplHelper< lang::XServiceInfo, io::XSeekableInputStream, lang::XInitialization>, diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx index f1ef3c6ebb48..6d604dc9b03f 100644 --- a/comphelper/source/streaming/seqoutputstreamserv.cxx +++ b/comphelper/source/streaming/seqoutputstreamserv.cxx @@ -26,7 +26,7 @@ #include <osl/mutex.hxx> #include <cppuhelper/factory.hxx> #include <cppuhelper/implementationentry.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <comphelper/seqstream.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -39,7 +39,7 @@ using namespace ::com::sun::star; namespace { class SequenceOutputStreamService: - public cppu::WeakImplHelper2<lang::XServiceInfo, io::XSequenceOutputStream>, + public cppu::WeakImplHelper<lang::XServiceInfo, io::XSequenceOutputStream>, private boost::noncopyable { public: |