diff options
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); |