diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-14 09:02:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-14 08:47:48 +0000 |
commit | 0ea50b5b43a934f2ab080f50585e386ebce0b805 (patch) | |
tree | 44ab55a29143ba8427c9caad43449869a4709679 /xmloff | |
parent | 20a9e101d909cb1953101e5962b74731e1265400 (diff) |
loplugin:countusersofdefaultparams in xmloff
Change-Id: Ia92a878ac97b3cc668594946e77a718f27a3e3ed
Reviewed-on: https://gerrit.libreoffice.org/28890
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/PageMasterImportContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/SchXMLExport.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/XMLChartPropertySetMapper.hxx | 4 | ||||
-rw-r--r-- | xmloff/inc/txtflde.hxx | 2 | ||||
-rw-r--r-- | xmloff/inc/xexptran.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/sdpropls.hxx | 6 | ||||
-rw-r--r-- | xmloff/source/draw/sdxmlexp_impl.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/controlpropertymap.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/PageMasterExportPropMapper.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlbahdl.hxx | 12 | ||||
-rw-r--r-- | xmloff/source/text/XMLChangeImportContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextListItemContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtexppr.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/transform/EventOOoTContext.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/transform/StyleOASISTContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/transform/StyleOASISTContext.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/transform/TransformerBase.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/xforms/TokenContext.hxx | 4 |
20 files changed, 33 insertions, 33 deletions
diff --git a/xmloff/inc/PageMasterImportContext.hxx b/xmloff/inc/PageMasterImportContext.hxx index 06bbf7a9dd02..5b08ac8cd7bf 100644 --- a/xmloff/inc/PageMasterImportContext.hxx +++ b/xmloff/inc/PageMasterImportContext.hxx @@ -44,7 +44,7 @@ public: const OUString& rLName, const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList, SvXMLStylesContext& rStyles, - bool bDefaultStyle=false); + bool bDefaultStyle); virtual ~PageStyleContext() override; virtual SvXMLImportContext *CreateChildContext( diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx index a4e1242b99d2..beb0d87443f2 100644 --- a/xmloff/inc/SchXMLExport.hxx +++ b/xmloff/inc/SchXMLExport.hxx @@ -53,7 +53,7 @@ public: SchXMLExport( const css::uno::Reference< css::uno::XComponentContext >& xContext, OUString const & implementationName, - SvXMLExportFlags nExportFlags = SvXMLExportFlags::ALL ); + SvXMLExportFlags nExportFlags ); virtual ~SchXMLExport() override; rtl::Reference< XMLPropertySetMapper > GetPropertySetMapper() const; diff --git a/xmloff/inc/XMLChartPropertySetMapper.hxx b/xmloff/inc/XMLChartPropertySetMapper.hxx index 588a4be0a090..f5cc42fd5f31 100644 --- a/xmloff/inc/XMLChartPropertySetMapper.hxx +++ b/xmloff/inc/XMLChartPropertySetMapper.hxx @@ -60,14 +60,14 @@ private: SvXMLExport& rExport, const XMLPropertyState& rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, - sal_uInt32 nIdx = 0 ) const override; + sal_uInt32 nIdx ) const override; /// this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set virtual void handleSpecialItem( SvXMLAttributeList& rAttrList, const XMLPropertyState& rProperty, const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, - sal_uInt32 nIdx = 0 ) const override; + sal_uInt32 nIdx ) const override; public: XMLChartExportPropertyMapper( const rtl::Reference< XMLPropertySetMapper >& rMapper, diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index 595de0a277cf..4be936bfaf16 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -163,7 +163,7 @@ public: XMLTextFieldExport( SvXMLExport& rExp, /// XMLPropertyState for the combined characters field - XMLPropertyState* pCombinedCharState = nullptr ); + XMLPropertyState* pCombinedCharState ); virtual ~XMLTextFieldExport(); /// Export this field and the surrounding span element with the formatting. diff --git a/xmloff/inc/xexptran.hxx b/xmloff/inc/xexptran.hxx index 184158d906b6..129317e16d37 100644 --- a/xmloff/inc/xexptran.hxx +++ b/xmloff/inc/xexptran.hxx @@ -98,7 +98,7 @@ class SdXMLImExViewBox double mfH; public: - SdXMLImExViewBox(double fX = 0.0, double fY = 0.0, double fW = 1000.0, double fH = 1000.0); + SdXMLImExViewBox(double fX, double fY, double fW, double fH); SdXMLImExViewBox(const OUString& rNew, const SvXMLUnitConverter& rConv); double GetX() const { return mfX; } diff --git a/xmloff/source/draw/sdpropls.hxx b/xmloff/source/draw/sdpropls.hxx index 5e91313efdfa..5db630c0c870 100644 --- a/xmloff/source/draw/sdpropls.hxx +++ b/xmloff/source/draw/sdpropls.hxx @@ -93,7 +93,7 @@ public: const XMLPropertyState& rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState >* pProperties, - sal_uInt32 nIdx = 0 + sal_uInt32 nIdx ) const override; void SetAutoStyles( bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; } @@ -104,7 +104,7 @@ public: const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, - sal_uInt32 nIdx = 0 ) const override; + sal_uInt32 nIdx ) const override; }; class XMLPageExportPropertyMapper : public SvXMLExportPropertyMapper @@ -126,7 +126,7 @@ public: const XMLPropertyState& rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState >* pProperties, - sal_uInt32 nIdx = 0 + sal_uInt32 nIdx ) const override; }; diff --git a/xmloff/source/draw/sdxmlexp_impl.hxx b/xmloff/source/draw/sdxmlexp_impl.hxx index 3764ceebb54e..b4c3ea02c426 100644 --- a/xmloff/source/draw/sdxmlexp_impl.hxx +++ b/xmloff/source/draw/sdxmlexp_impl.hxx @@ -162,7 +162,7 @@ public: SdXMLExport( const css::uno::Reference< css::uno::XComponentContext >& xContext, OUString const & implementationName, - bool bIsDraw, SvXMLExportFlags nExportFlags = SvXMLExportFlags::ALL ); + bool bIsDraw, SvXMLExportFlags nExportFlags ); virtual ~SdXMLExport() override; void SetProgress(sal_Int32 nProg); diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index 5738e703fa9e..f36da5f7d3ff 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -721,7 +721,7 @@ public: sal_Int32 mnCurrentZ; std::shared_ptr<ShapeSortContext> mpParentContext; - ShapeSortContext( uno::Reference< drawing::XShapes >& rShapes, std::shared_ptr<ShapeSortContext> pParentContext = nullptr ); + ShapeSortContext( uno::Reference< drawing::XShapes >& rShapes, std::shared_ptr<ShapeSortContext> pParentContext ); void popGroupAndSort(); private: diff --git a/xmloff/source/forms/controlpropertymap.hxx b/xmloff/source/forms/controlpropertymap.hxx index 123c53a570e5..c1dc58183da0 100644 --- a/xmloff/source/forms/controlpropertymap.hxx +++ b/xmloff/source/forms/controlpropertymap.hxx @@ -43,7 +43,7 @@ namespace xmloff const SvXMLUnitConverter& _rUnitConverter, const SvXMLNamespaceMap& _rNamespaceMap, const ::std::vector< XMLPropertyState >* _pProperties, - sal_uInt32 _nIdx = 0 + sal_uInt32 _nIdx ) const override; }; diff --git a/xmloff/source/style/PageMasterExportPropMapper.hxx b/xmloff/source/style/PageMasterExportPropMapper.hxx index 0e8a792806bb..21739c866b83 100644 --- a/xmloff/source/style/PageMasterExportPropMapper.hxx +++ b/xmloff/source/style/PageMasterExportPropMapper.hxx @@ -50,7 +50,7 @@ public: const XMLPropertyState& rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState >* pProperties, - sal_uInt32 nIdx = 0 + sal_uInt32 nIdx ) const override; virtual void handleSpecialItem( SvXMLAttributeList& rAttrList, @@ -58,7 +58,7 @@ public: const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap, const ::std::vector< XMLPropertyState >* pProperties, - sal_uInt32 nIdx = 0 + sal_uInt32 nIdx ) const override; }; diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index 992c188a69e9..c70c4da4d78f 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -118,7 +118,7 @@ struct XMLAutoStyleFamily XMLAutoStyleFamily( sal_Int32 nFamily, const OUString& rStrName, const rtl::Reference<SvXMLExportPropertyMapper>& rMapper, - const OUString& rStrPrefix, bool bAsFamily = true ); + const OUString& rStrPrefix, bool bAsFamily ); explicit XMLAutoStyleFamily( sal_Int32 nFamily ); ~XMLAutoStyleFamily(); diff --git a/xmloff/source/style/xmlbahdl.hxx b/xmloff/source/style/xmlbahdl.hxx index 3bb213b7fe37..4dad377b9d8f 100644 --- a/xmloff/source/style/xmlbahdl.hxx +++ b/xmloff/source/style/xmlbahdl.hxx @@ -33,7 +33,7 @@ class XMLNumberPropHdl : public XMLPropertyHandler sal_Int8 nBytes; public: - explicit XMLNumberPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} + explicit XMLNumberPropHdl( sal_Int8 nB ) : nBytes( nB ) {} virtual ~XMLNumberPropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; @@ -49,7 +49,7 @@ class XMLNumberNonePropHdl : public XMLPropertyHandler sal_Int8 nBytes; public: explicit XMLNumberNonePropHdl( sal_Int8 nB = 4 ); - XMLNumberNonePropHdl( enum ::xmloff::token::XMLTokenEnum eZeroString, sal_Int8 nB = 4 ); + XMLNumberNonePropHdl( enum ::xmloff::token::XMLTokenEnum eZeroString, sal_Int8 nB ); virtual ~XMLNumberNonePropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; @@ -63,7 +63,7 @@ class XMLMeasurePropHdl : public XMLPropertyHandler { sal_Int8 nBytes; public: - explicit XMLMeasurePropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} + explicit XMLMeasurePropHdl( sal_Int8 nB ) : nBytes( nB ) {} virtual ~XMLMeasurePropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; @@ -77,7 +77,7 @@ class XMLPercentPropHdl : public XMLPropertyHandler { sal_Int8 nBytes; public: - explicit XMLPercentPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} + explicit XMLPercentPropHdl( sal_Int8 nB ) : nBytes( nB ) {} virtual ~XMLPercentPropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; @@ -101,7 +101,7 @@ class XMLNegPercentPropHdl : public XMLPropertyHandler { sal_Int8 nBytes; public: - explicit XMLNegPercentPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} + explicit XMLNegPercentPropHdl( sal_Int8 nB ) : nBytes( nB ) {} virtual ~XMLNegPercentPropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; @@ -115,7 +115,7 @@ class XMLMeasurePxPropHdl : public XMLPropertyHandler { sal_Int8 nBytes; public: - explicit XMLMeasurePxPropHdl( sal_Int8 nB=4 ) : nBytes( nB ) {} + explicit XMLMeasurePxPropHdl( sal_Int8 nB ) : nBytes( nB ) {} virtual ~XMLMeasurePxPropHdl() override; virtual bool importXML( const OUString& rStrImpValue, css::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const override; diff --git a/xmloff/source/text/XMLChangeImportContext.hxx b/xmloff/source/text/XMLChangeImportContext.hxx index c3570ec82d3d..fbab1b14aa20 100644 --- a/xmloff/source/text/XMLChangeImportContext.hxx +++ b/xmloff/source/text/XMLChangeImportContext.hxx @@ -60,7 +60,7 @@ public: bool bIsEnd, /// mark end of a change /// true if change mark is encountered outside of a paragraph /// (usually before a section or table) - bool bIsOutsideOfParagraph = false); + bool bIsOutsideOfParagraph); virtual ~XMLChangeImportContext() override; diff --git a/xmloff/source/text/XMLTextListItemContext.hxx b/xmloff/source/text/XMLTextListItemContext.hxx index 93546c3707f5..6f9e500d819b 100644 --- a/xmloff/source/text/XMLTextListItemContext.hxx +++ b/xmloff/source/text/XMLTextListItemContext.hxx @@ -44,7 +44,7 @@ public: const sal_uInt16 nPrfx, const OUString& rLName, const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList, - const bool bIsHeader = false ); + const bool bIsHeader ); virtual ~XMLTextListItemContext() override; virtual void EndElement() override; diff --git a/xmloff/source/text/txtexppr.hxx b/xmloff/source/text/txtexppr.hxx index 7d17f8b31887..e64940d5fda7 100644 --- a/xmloff/source/text/txtexppr.hxx +++ b/xmloff/source/text/txtexppr.hxx @@ -74,7 +74,7 @@ public: const XMLPropertyState& rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, - sal_uInt32 nIdx = 0 ) const override; + sal_uInt32 nIdx ) const override; virtual void handleSpecialItem( SvXMLAttributeList& rAttrList, @@ -82,7 +82,7 @@ public: const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, - sal_uInt32 nIdx = 0 ) const override; + sal_uInt32 nIdx ) const override; }; diff --git a/xmloff/source/transform/EventOOoTContext.hxx b/xmloff/source/transform/EventOOoTContext.hxx index 1d63c85da094..23297127dff9 100644 --- a/xmloff/source/transform/EventOOoTContext.hxx +++ b/xmloff/source/transform/EventOOoTContext.hxx @@ -31,7 +31,7 @@ class XMLEventOOoTransformerContext : public XMLPersElemContentTContext public: XMLEventOOoTransformerContext( XMLTransformerBase& rTransformer, const OUString& rQName, - bool bPersistent = false ); + bool bPersistent ); virtual ~XMLEventOOoTransformerContext() override; static XMLTransformerOOoEventMap_Impl *CreateEventMap(); diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index 9451729169d9..c527afa13263 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -81,7 +81,7 @@ public: const OUString& rQName, XMLPropType eP, const OUString& rStyleFamily, - bool _bControlStyle = false ); + bool _bControlStyle ); virtual ~XMLPropertiesTContext_Impl() override; diff --git a/xmloff/source/transform/StyleOASISTContext.hxx b/xmloff/source/transform/StyleOASISTContext.hxx index 0874cf73d80b..1671cf036091 100644 --- a/xmloff/source/transform/StyleOASISTContext.hxx +++ b/xmloff/source/transform/StyleOASISTContext.hxx @@ -37,12 +37,12 @@ class XMLStyleOASISTContext : public XMLPersElemContentTContext public: XMLStyleOASISTContext( XMLTransformerBase& rTransformer, const OUString& rQName, - bool bPersistent=false ); + bool bPersistent ); XMLStyleOASISTContext( XMLTransformerBase& rTransformer, const OUString& rQName, sal_uInt16 nPrefix, ::xmloff::token::XMLTokenEnum eToken, - bool bPersistent=false ); + bool bPersistent ); virtual ~XMLStyleOASISTContext() override; diff --git a/xmloff/source/transform/TransformerBase.hxx b/xmloff/source/transform/TransformerBase.hxx index ab4ac1c83c00..a22fa7379c2c 100644 --- a/xmloff/source/transform/TransformerBase.hxx +++ b/xmloff/source/transform/TransformerBase.hxx @@ -78,8 +78,8 @@ protected: const OUString& rQName ); public: - XMLTransformerBase( XMLTransformerActionInit *pInit=nullptr, - ::xmloff::token::XMLTokenEnum *pTKMapInit=nullptr ) throw(); + XMLTransformerBase( XMLTransformerActionInit *pInit, + ::xmloff::token::XMLTokenEnum *pTKMapInit ) throw(); virtual ~XMLTransformerBase() throw() override; // css::xml::sax::XDocumentHandler diff --git a/xmloff/source/xforms/TokenContext.hxx b/xmloff/source/xforms/TokenContext.hxx index e813236787d4..70d1ee5e3bc9 100644 --- a/xmloff/source/xforms/TokenContext.hxx +++ b/xmloff/source/xforms/TokenContext.hxx @@ -44,8 +44,8 @@ public: TokenContext( SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName, - const SvXMLTokenMapEntry* pAttributes = nullptr, - const SvXMLTokenMapEntry* pChildren = nullptr ); + const SvXMLTokenMapEntry* pAttributes, + const SvXMLTokenMapEntry* pChildren ); virtual ~TokenContext() override; |