diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-22 14:35:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-25 06:09:17 +0000 |
commit | 938821fb08e427864db6a10642f385bde9803f6c (patch) | |
tree | 759da9d0d0905a90f6dac2f0bf750721c17421c4 /xmloff | |
parent | 4d4d77a1aad1bcae18bad35dad5308d33d6b2e51 (diff) |
new loplugin overrideparam
verify that parameters on override methods have the same set of default
values for their params as their parent/super-methods do.
Change-Id: Ibdbc1c6e417fbaa680ea025a6bbf5ba9c2e5bcd2
Reviewed-on: https://gerrit.libreoffice.org/27437
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmlversion.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/controlpropertymap.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/transform/Oasis2OOo.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/inc/xmlversion.hxx b/xmloff/inc/xmlversion.hxx index a6bcd9ab8a46..c31e39337c01 100644 --- a/xmloff/inc/xmlversion.hxx +++ b/xmloff/inc/xmlversion.hxx @@ -44,7 +44,7 @@ public: css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler ); virtual ~XMLVersionListExport() {} - sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass ) override; + sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = ::xmloff::token::XML_TOKEN_INVALID ) override; void ExportAutoStyles_() override {} void ExportMasterStyles_ () override {} void ExportContent_() override {} diff --git a/xmloff/source/forms/controlpropertymap.hxx b/xmloff/source/forms/controlpropertymap.hxx index c1dc58183da0..e3c7a871a4e9 100644 --- a/xmloff/source/forms/controlpropertymap.hxx +++ b/xmloff/source/forms/controlpropertymap.hxx @@ -42,8 +42,8 @@ namespace xmloff const XMLPropertyState& _rProperty, const SvXMLUnitConverter& _rUnitConverter, const SvXMLNamespaceMap& _rNamespaceMap, - const ::std::vector< XMLPropertyState >* _pProperties, - sal_uInt32 _nIdx + const ::std::vector< XMLPropertyState >* _pProperties = nullptr, + sal_uInt32 _nIdx = 0 ) const override; }; diff --git a/xmloff/source/transform/Oasis2OOo.hxx b/xmloff/source/transform/Oasis2OOo.hxx index 9ad05296e5ad..829175e029cb 100644 --- a/xmloff/source/transform/Oasis2OOo.hxx +++ b/xmloff/source/transform/Oasis2OOo.hxx @@ -55,7 +55,7 @@ public: virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException, std::exception) override; virtual OUString GetEventName( const OUString& rName, - bool bForm ) override; + bool bForm = false ) override; }; #endif // INCLUDED_XMLOFF_SOURCE_TRANSFORM_OASIS2OOO_HXX |