From 8358eadcbae4b1e20f85f31d0faf6b3fccf353eb Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 11 Sep 2015 11:02:33 +0900 Subject: xmloff: tdf#88206 replace cppu::WeakImplHelper* with the variadic variants. Change-Id: I47002abab1e025d0683f4cf8ef7b6c99e668d425 Reviewed-on: https://gerrit.libreoffice.org/18479 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- xmloff/inc/StyleMap.hxx | 4 ++-- xmloff/inc/XMLBasicExportFilter.hxx | 4 ++-- xmloff/inc/pch/precompiled_xo.hxx | 1 + xmloff/source/chart/ColorPropertySet.cxx | 4 ++-- xmloff/source/chart/ColorPropertySet.hxx | 4 ++-- xmloff/source/chart/SchXMLPlotAreaContext.cxx | 1 - xmloff/source/core/xmlexp.cxx | 4 ++-- xmloff/source/core/xmlimp.cxx | 4 ++-- xmloff/source/draw/animationimport.cxx | 1 - xmloff/source/draw/sdxmlexp.cxx | 1 - xmloff/source/draw/ximppage.cxx | 4 ++-- xmloff/source/forms/attriblistmerge.hxx | 4 ++-- xmloff/source/forms/eventexport.hxx | 4 ++-- xmloff/source/forms/gridcolumnproptranslator.hxx | 4 ++-- xmloff/source/transform/MutableAttrList.hxx | 4 ++-- xmloff/source/transform/Transformer.hxx | 4 ++-- 16 files changed, 25 insertions(+), 27 deletions(-) diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index 1f3142a6aaac..04faf515f67f 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -21,7 +21,7 @@ #define INCLUDED_XMLOFF_INC_STYLEMAP_HXX #include -#include +#include #include struct StyleNameKey_Impl @@ -63,7 +63,7 @@ inline bool StyleNameHash_Impl::operator()( } class StyleMap : - public ::cppu::WeakImplHelper1< ::com::sun::star::lang::XUnoTunnel>, + public ::cppu::WeakImplHelper< ::com::sun::star::lang::XUnoTunnel>, public std::unordered_map< StyleNameKey_Impl, OUString, StyleNameHash_Impl, StyleNameHash_Impl > { diff --git a/xmloff/inc/XMLBasicExportFilter.hxx b/xmloff/inc/XMLBasicExportFilter.hxx index e88751dde04f..a0b2644c81c0 100644 --- a/xmloff/inc/XMLBasicExportFilter.hxx +++ b/xmloff/inc/XMLBasicExportFilter.hxx @@ -21,11 +21,11 @@ #define INCLUDED_XMLOFF_INC_XMLBASICEXPORTFILTER_HXX #include -#include +#include // class XMLBasicExportFilter -typedef ::cppu::WeakImplHelper1< +typedef ::cppu::WeakImplHelper< ::com::sun::star::xml::sax::XDocumentHandler > XMLBasicExportFilter_BASE; class XMLBasicExportFilter : public XMLBasicExportFilter_BASE diff --git a/xmloff/inc/pch/precompiled_xo.hxx b/xmloff/inc/pch/precompiled_xo.hxx index 49a133d628ed..78573fcf08b3 100644 --- a/xmloff/inc/pch/precompiled_xo.hxx +++ b/xmloff/inc/pch/precompiled_xo.hxx @@ -500,6 +500,7 @@ #include #include #include +#include #include #include #include diff --git a/xmloff/source/chart/ColorPropertySet.cxx b/xmloff/source/chart/ColorPropertySet.cxx index b8ff05c7e8d2..f0af27a79574 100644 --- a/xmloff/source/chart/ColorPropertySet.cxx +++ b/xmloff/source/chart/ColorPropertySet.cxx @@ -19,7 +19,7 @@ #include "ColorPropertySet.hxx" -#include +#include #include @@ -32,7 +32,7 @@ using ::com::sun::star::uno::RuntimeException; namespace { -class lcl_ColorPropertySetInfo : public ::cppu::WeakImplHelper1< +class lcl_ColorPropertySetInfo : public ::cppu::WeakImplHelper< XPropertySetInfo > { public: diff --git a/xmloff/source/chart/ColorPropertySet.hxx b/xmloff/source/chart/ColorPropertySet.hxx index 9af8848016e1..448e1fffe6df 100644 --- a/xmloff/source/chart/ColorPropertySet.hxx +++ b/xmloff/source/chart/ColorPropertySet.hxx @@ -19,7 +19,7 @@ #ifndef XMLOFF_COLORPROPERTYSET_HXX #define XMLOFF_COLORPROPERTYSET_HXX -#include +#include #include #include @@ -29,7 +29,7 @@ namespace xmloff namespace chart { -class ColorPropertySet : public ::cppu::WeakImplHelper2< +class ColorPropertySet : public ::cppu::WeakImplHelper< ::com::sun::star::beans::XPropertySet, ::com::sun::star::beans::XPropertyState > { diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index a17e1cfb838b..06e8771172d9 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -34,7 +34,6 @@ #include #include #include "xexptran.hxx" -#include #include #include diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 91f73b73e72e..c0f556c9b5d0 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -70,7 +70,7 @@ #include #include "XMLBasicExportFilter.hxx" #include -#include +#include #include #include #include @@ -206,7 +206,7 @@ Reference< XComponentContext > SettingsExportFacade::GetComponentContext() const return m_rExport.getComponentContext(); } -class SvXMLExportEventListener : public cppu::WeakImplHelper1< +class SvXMLExportEventListener : public cppu::WeakImplHelper< com::sun::star::lang::XEventListener > { private: diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 9108fc760ab0..7a56898e6d61 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include @@ -105,7 +105,7 @@ sal_Char const sXML_np__field[] = "_field"; sal_Char const sXML_np__xhtml[] = "_xhtml"; sal_Char const sXML_np__css3text[] = "_css3text"; -class SvXMLImportEventListener : public cppu::WeakImplHelper1< +class SvXMLImportEventListener : public cppu::WeakImplHelper< com::sun::star::lang::XEventListener > { private: diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx index 495441ef2173..5bc91ff0ca50 100644 --- a/xmloff/source/draw/animationimport.cxx +++ b/xmloff/source/draw/animationimport.cxx @@ -49,7 +49,6 @@ #include #include #include -#include #include diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index fa86bafaed48..5e4abe4fc7ee 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -64,7 +64,6 @@ #include "facreg.hxx" #include "xexptran.hxx" -#include #include #include #include diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx index 14c816d30ce4..25f7e66eef2c 100644 --- a/xmloff/source/draw/ximppage.cxx +++ b/xmloff/source/draw/ximppage.cxx @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include "XMLNumberStylesImport.hxx" #include @@ -533,7 +533,7 @@ void SdXMLGenericPageContext::SetPageMaster( OUString& rsPageMasterName ) } } -class XoNavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess > +class XoNavigationOrderAccess : public ::cppu::WeakImplHelper< XIndexAccess > { public: explicit XoNavigationOrderAccess( std::vector< Reference< XShape > >& rShapes ); diff --git a/xmloff/source/forms/attriblistmerge.hxx b/xmloff/source/forms/attriblistmerge.hxx index 576db3295a07..6ab49d88841d 100644 --- a/xmloff/source/forms/attriblistmerge.hxx +++ b/xmloff/source/forms/attriblistmerge.hxx @@ -24,7 +24,7 @@ #include -#include +#include #include #include @@ -32,7 +32,7 @@ namespace xmloff { //= OAttribListMerger - typedef ::cppu::WeakImplHelper1 < ::com::sun::star::xml::sax::XAttributeList + typedef ::cppu::WeakImplHelper < ::com::sun::star::xml::sax::XAttributeList > OAttribListMerger_Base; /** implements the XAttributeList list by merging different source attribute lists diff --git a/xmloff/source/forms/eventexport.hxx b/xmloff/source/forms/eventexport.hxx index e1927d37cd1f..2bec21425bb7 100644 --- a/xmloff/source/forms/eventexport.hxx +++ b/xmloff/source/forms/eventexport.hxx @@ -28,13 +28,13 @@ #include #include #include -#include +#include namespace xmloff { //= OEventDescriptorMapper - typedef ::cppu::WeakImplHelper1 < ::com::sun::star::container::XNameReplace + typedef ::cppu::WeakImplHelper < ::com::sun::star::container::XNameReplace > OEventDescriptorMapper_Base; /** helper class wrapping different script event representations diff --git a/xmloff/source/forms/gridcolumnproptranslator.hxx b/xmloff/source/forms/gridcolumnproptranslator.hxx index 5ee7db5e871f..4f5396564112 100644 --- a/xmloff/source/forms/gridcolumnproptranslator.hxx +++ b/xmloff/source/forms/gridcolumnproptranslator.hxx @@ -22,13 +22,13 @@ #include #include -#include +#include namespace xmloff { //= OGridColumnPropertyTranslator - typedef ::cppu::WeakImplHelper2 < ::com::sun::star::beans::XPropertySet + typedef ::cppu::WeakImplHelper < ::com::sun::star::beans::XPropertySet , ::com::sun::star::beans::XMultiPropertySet > OGridColumnPropertyTranslator_Base; class OGridColumnPropertyTranslator : public OGridColumnPropertyTranslator_Base diff --git a/xmloff/source/transform/MutableAttrList.hxx b/xmloff/source/transform/MutableAttrList.hxx index eb287c52f71b..75b5759ffc49 100644 --- a/xmloff/source/transform/MutableAttrList.hxx +++ b/xmloff/source/transform/MutableAttrList.hxx @@ -24,11 +24,11 @@ #include #include -#include +#include class SvXMLAttributeList; -class XMLMutableAttributeList : public ::cppu::WeakImplHelper3< +class XMLMutableAttributeList : public ::cppu::WeakImplHelper< ::com::sun::star::xml::sax::XAttributeList, ::com::sun::star::util::XCloneable, ::com::sun::star::lang::XUnoTunnel> diff --git a/xmloff/source/transform/Transformer.hxx b/xmloff/source/transform/Transformer.hxx index 43771546a401..cf589ea991c2 100644 --- a/xmloff/source/transform/Transformer.hxx +++ b/xmloff/source/transform/Transformer.hxx @@ -24,9 +24,9 @@ #include #include #include -#include +#include -class XMLTransformer : public ::cppu::WeakImplHelper4< +class XMLTransformer : public ::cppu::WeakImplHelper< ::com::sun::star::xml::sax::XExtendedDocumentHandler, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XInitialization, -- cgit v1.2.3