i18npool: tdf#88206 replace cppu::WeakImplHelper*

with the variadic variants.

Change-Id: I0381de7fde198df74556355984bdaba2ecdedd4b
Reviewed-on: https://gerrit.libreoffice.org/17768
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Takeshi Abe
2015-08-18 07:12:26 +00:00
committed by Noel Grandin
parent 370a26f780
commit 0a4c482a8a
26 changed files with 45 additions and 52 deletions
+2 -2
View File
@@ -30,7 +30,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/CharType.hpp>
#include <com/sun/star/i18n/XLocaleData.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <vector>
@@ -39,7 +39,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class BreakIterator
class BreakIteratorImpl : public cppu::WeakImplHelper2
class BreakIteratorImpl : public cppu::WeakImplHelper
<
XBreakIterator,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -23,7 +23,7 @@
#include <com/sun/star/i18n/CalendarDisplayCode.hpp>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
#include <com/sun/star/i18n/CalendarDisplayIndex.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <vector>
@@ -34,7 +34,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
class CalendarImpl : public cppu::WeakImplHelper2
class CalendarImpl : public cppu::WeakImplHelper
<
com::sun::star::i18n::XCalendar4,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -22,7 +22,7 @@
#include <com/sun/star/i18n/XNativeNumberSupplier.hpp>
#include <com/sun/star/i18n/XCharacterClassification.hpp>
#include <com/sun/star/i18n/XLocaleData4.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <transliteration_body.hxx>
@@ -35,7 +35,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
typedef sal_uInt32 UPT_FLAG_TYPE;
class cclass_Unicode : public cppu::WeakImplHelper2 < XCharacterClassification, css::lang::XServiceInfo >
class cclass_Unicode : public cppu::WeakImplHelper < XCharacterClassification, css::lang::XServiceInfo >
{
public:
cclass_Unicode(const com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext >& rxContext );
+2 -2
View File
@@ -20,7 +20,7 @@
#define INCLUDED_I18NPOOL_INC_CHARACTERCLASSIFICATIONIMPL_HXX
#include <com/sun/star/i18n/XCharacterClassification.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <vector>
#include <com/sun/star/i18n/KCharacterType.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -28,7 +28,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
class CharacterClassificationImpl : public cppu::WeakImplHelper2
class CharacterClassificationImpl : public cppu::WeakImplHelper
<
XCharacterClassification,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -25,7 +25,7 @@
#include <com/sun/star/i18n/XCollator.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <sal/alloca.h>
#include <vector>
@@ -34,7 +34,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------
// class CollatorImpl
// ----------------------------------------------------
class CollatorImpl : public cppu::WeakImplHelper2
class CollatorImpl : public cppu::WeakImplHelper
<
XCollator,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/i18n/XCollator.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/module.h>
#include <unicode/tblcoll.h>
@@ -33,7 +33,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
class Collator_Unicode : public cppu::WeakImplHelper2 < XCollator, com::sun::star::lang::XServiceInfo >
class Collator_Unicode : public cppu::WeakImplHelper < XCollator, com::sun::star::lang::XServiceInfo >
{
public:
// Constructors
+2 -2
View File
@@ -23,7 +23,7 @@
#include <com/sun/star/text/XNumberingFormatter.hpp>
#include <com/sun/star/text/XNumberingTypeInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase4.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/i18n/XTransliteration.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
@@ -31,7 +31,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
class DefaultNumberingProvider : public cppu::WeakImplHelper4
class DefaultNumberingProvider : public cppu::WeakImplHelper
<
com::sun::star::text::XDefaultNumberingProvider,
com::sun::star::text::XNumberingFormatter,
+2 -2
View File
@@ -20,7 +20,7 @@
#define INCLUDED_I18NPOOL_INC_INDEXENTRYSUPPLIER_HXX
#include <com/sun/star/i18n/XExtendedIndexEntrySupplier.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
@@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class IndexEntrySupplier
class IndexEntrySupplier : public cppu::WeakImplHelper2
class IndexEntrySupplier : public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedIndexEntrySupplier,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -21,7 +21,7 @@
#define INCLUDED_I18NPOOL_INC_INDEXENTRYSUPPLIER_COMMON_HXX
#include <com/sun/star/i18n/XExtendedIndexEntrySupplier.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <collatorImpl.hxx>
@@ -31,7 +31,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class IndexEntrySupplier_Common
class IndexEntrySupplier_Common : public cppu::WeakImplHelper2
class IndexEntrySupplier_Common : public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedIndexEntrySupplier,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -20,7 +20,7 @@
#define INCLUDED_I18NPOOL_INC_INPUTSEQUENCECHECKER_HXX
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/i18n/XExtendedInputSequenceChecker.hpp>
@@ -32,7 +32,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class InputSequenceCheckerImpl
class InputSequenceCheckerImpl : public cppu::WeakImplHelper2
class InputSequenceCheckerImpl : public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedInputSequenceChecker,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -26,7 +26,7 @@
#include <com/sun/star/i18n/XLocaleData4.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppu/macros.hxx>
#include <com/sun/star/uno/Reference.h>
@@ -62,7 +62,7 @@ inline bool operator ==(const com::sun::star::lang::Locale& l1, const com::sun::
return l1.Language == l2.Language && l1.Country == l2.Country && l1.Variant == l2.Variant;
};
class LocaleDataImpl : public cppu::WeakImplHelper2
class LocaleDataImpl : public cppu::WeakImplHelper
<
com::sun::star::i18n::XLocaleData4,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -22,7 +22,7 @@
#include <com/sun/star/i18n/XNativeNumberSupplier.hpp>
#include <com/sun/star/i18n/NativeNumberMode.hpp>
#include <com/sun/star/i18n/NativeNumberXmlAttributes.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
namespace com { namespace sun { namespace star { namespace i18n {
@@ -30,7 +30,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------
// class NativeNumberSupplierService
// ----------------------------------------------------
class NativeNumberSupplierService : public cppu::WeakImplHelper2
class NativeNumberSupplierService : public cppu::WeakImplHelper
<
com::sun::star::i18n::XNativeNumberSupplier,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -22,14 +22,14 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/i18n/XNumberFormatCode.hpp>
#include <com/sun/star/i18n/XLocaleData4.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
class NumberFormatCodeMapper : public cppu::WeakImplHelper2
class NumberFormatCodeMapper : public cppu::WeakImplHelper
<
::com::sun::star::i18n::XNumberFormatCode,
::com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -21,14 +21,14 @@
#define INCLUDED_I18NPOOL_INC_ORDINALSUFFIX_HXX
#include <com/sun/star/i18n/XOrdinalSuffix.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/Locale.hpp>
namespace com { namespace sun { namespace star { namespace i18n {
class OrdinalSuffixService : public cppu::WeakImplHelper2
class OrdinalSuffixService : public cppu::WeakImplHelper
<
XOrdinalSuffix,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -25,7 +25,7 @@
#include <com/sun/star/linguistic2/XConversionDictionary.hpp>
#include <com/sun/star/linguistic2/XConversionDictionaryList.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/module.h>
namespace com { namespace sun { namespace star { namespace i18n {
@@ -33,7 +33,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class TextConversionService
class TextConversionService: public cppu::WeakImplHelper2
class TextConversionService: public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedTextConversion,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -23,14 +23,14 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/i18n/XExtendedTextConversion.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
namespace com { namespace sun { namespace star { namespace i18n {
// class TextConversion
class TextConversionImpl : public cppu::WeakImplHelper2
class TextConversionImpl : public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedTextConversion,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -21,7 +21,7 @@
#include <com/sun/star/i18n/XLocaleData4.hpp>
#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <sal/types.h>
@@ -36,7 +36,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
#define RETURN_DEBUG_NUMBER
#endif
class TransliterationImpl : public cppu::WeakImplHelper2
class TransliterationImpl : public cppu::WeakImplHelper
<
com::sun::star::i18n::XExtendedTransliteration,
com::sun::star::lang::XServiceInfo
+2 -2
View File
@@ -22,13 +22,13 @@
#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
#include <com/sun/star/i18n/TransliterationType.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/ustrbuf.h>
#include <rtl/ustring.hxx>
namespace com { namespace sun { namespace star { namespace i18n {
class transliteration_commonclass : public cppu::WeakImplHelper2<
class transliteration_commonclass : public cppu::WeakImplHelper<
com::sun::star::i18n::XExtendedTransliteration,
com::sun::star::lang::XServiceInfo
>
+2 -2
View File
@@ -22,12 +22,12 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/i18n/XScriptTypeDetector.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
// class UnoScriptTypeDetector
class UnoScriptTypeDetector : public cppu::WeakImplHelper2
class UnoScriptTypeDetector : public cppu::WeakImplHelper
<
::com::sun::star::i18n::XScriptTypeDetector,
::com::sun::star::lang::XServiceInfo
@@ -7,7 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/i18n/XBreakIterator.hpp>
@@ -7,7 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/i18n/XCharacterClassification.hpp>
-1
View File
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/util/SearchFlags.hpp>
@@ -28,9 +28,6 @@
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase3.hxx>
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::uno;
+2 -2
View File
@@ -1327,7 +1327,7 @@ LocaleDataImpl::getContinuousNumberingLevels( const lang::Locale& rLocale ) thro
// OutlineNumbering helper class
#include <com/sun/star/container/XIndexAccess.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
namespace com{ namespace sun{ namespace star{ namespace lang {
struct Locale;
@@ -1348,7 +1348,7 @@ struct OutlineNumberingLevel_Impl
sal_Int32 nNatNum;
};
class OutlineNumbering : public cppu::WeakImplHelper1 < container::XIndexAccess >
class OutlineNumbering : public cppu::WeakImplHelper < container::XIndexAccess >
{
// OutlineNumbering helper class
+3 -4
View File
@@ -37,8 +37,7 @@
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <cppuhelper/bootstrap.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/diagnose.h>
@@ -59,7 +58,7 @@ using namespace ::com::sun::star::io;
/************
* Sequence of bytes -> InputStream
************/
class OInputStream : public WeakImplHelper1 < XInputStream >
class OInputStream : public WeakImplHelper < XInputStream >
{
public:
explicit OInputStream( const Sequence< sal_Int8 >&seq )
@@ -153,7 +152,7 @@ Reference< XInputStream > createStreamFromFile(
class TestDocumentHandler :
public WeakImplHelper3< XExtendedDocumentHandler , XEntityResolver , XErrorHandler >
public WeakImplHelper< XExtendedDocumentHandler , XEntityResolver , XErrorHandler >
{
public:
TestDocumentHandler(const char* locale, const char* outFile )
+2 -2
View File
@@ -20,7 +20,7 @@
#ifndef INCLUDED_I18NPOOL_SOURCE_SEARCH_TEXTSEARCH_HXX
#define INCLUDED_I18NPOOL_SOURCE_SEARCH_TEXTSEARCH_HXX
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/util/XTextSearch.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
@@ -37,7 +37,7 @@ typedef U_ICU_NAMESPACE::UnicodeString IcuUniString;
class WLevDistance;
typedef ::std::map< sal_Unicode, sal_Int32 > TextSearchJumpTable;
class TextSearch: public cppu::WeakImplHelper2
class TextSearch: public cppu::WeakImplHelper
<
::com::sun::star::util::XTextSearch,
::com::sun::star::lang::XServiceInfo