diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-12 13:10:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-14 06:40:30 +0000 |
commit | 1e49e33c26950b606714c0dafb26cbcb2aeb3877 (patch) | |
tree | e510fd3a5babf1712d136b866120bea4dd5b8f1a /configmgr | |
parent | e1822c809b137859382139aace0c08be4547c157 (diff) |
loplugin:constantparam in chart2..connectivity
Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d
Reviewed-on: https://gerrit.libreoffice.org/28834
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/access.cxx | 2 | ||||
-rw-r--r-- | configmgr/source/components.cxx | 5 | ||||
-rw-r--r-- | configmgr/source/components.hxx | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 77af56f931af..486a826e50e4 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -1276,7 +1276,7 @@ css::uno::Reference< css::uno::XInterface > Access::createInstance() OUString tmplName( static_cast< SetNode * >(getNode().get())->getDefaultTemplateName()); rtl::Reference< Node > tmpl( - components_.getTemplate(Data::NO_LAYER, tmplName)); + components_.getTemplate(tmplName)); if (!tmpl.is()) { throw css::uno::Exception( "unknown template " + tmplName, diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index 2450d0b4af40..4797a6732136 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -224,10 +224,9 @@ rtl::Reference< Node > Components::resolvePathRepresentation( pathRepresentation, canonicRepresentation, path, finalizedLayer); } -rtl::Reference< Node > Components::getTemplate( - int layer, OUString const & fullName) const +rtl::Reference< Node > Components::getTemplate(OUString const & fullName) const { - return data_.getTemplate(layer, fullName); + return data_.getTemplate(Data::NO_LAYER, fullName); } void Components::addRootAccess(rtl::Reference< RootAccess > const & access) { diff --git a/configmgr/source/components.hxx b/configmgr/source/components.hxx index 1ca24d638087..fc10060e0845 100644 --- a/configmgr/source/components.hxx +++ b/configmgr/source/components.hxx @@ -61,8 +61,7 @@ public: OUString * canonicRepresenation, std::vector<OUString> * path, int * finalizedLayer) const; - rtl::Reference< Node > getTemplate( - int layer, OUString const & fullName) const; + rtl::Reference< Node > getTemplate( OUString const & fullName) const; void addRootAccess(rtl::Reference< RootAccess > const & access); |