diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-12-13 22:16:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-12-13 22:16:31 +0100 |
commit | db4bc6812d69d960a558b89c18f08b17a2e38d27 (patch) | |
tree | 15d6547e929635baaffd9a4008a872e9d1c246e6 /configmgr/source/data.cxx | |
parent | 39cbce553da1834f78b77f48b2f1be9578d6cc05 (diff) |
Unified configmgr::Node::getMember{s,Map} again.
(With the insight that Data::components is RootNode::members.)
Diffstat (limited to 'configmgr/source/data.cxx')
-rw-r--r-- | configmgr/source/data.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index fcc42e97cecc..df7ce604b649 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -208,7 +208,7 @@ rtl::Reference< Node > Data::findNode( ? rtl::Reference< Node >() : i->second; } -Data::Data(): root_(new RootNode(components)) {} +Data::Data(): root_(new RootNode) {} rtl::Reference< Node > Data::resolvePathRepresentation( rtl::OUString const & pathRepresentation, @@ -244,6 +244,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( pathRepresentation), css::uno::Reference< css::uno::XInterface >()); } + NodeMap const & components = getComponents(); NodeMap::const_iterator i(components.find(seg)); rtl::OUStringBuffer canonic; rtl::Reference< Node > parent; @@ -340,6 +341,10 @@ rtl::Reference< Node > Data::getTemplate( return findNode(layer, templates, fullName); } +NodeMap & Data::getComponents() const { + return root_->getMembers(); +} + Additions * Data::addExtensionXcuAdditions( rtl::OUString const & url, int layer) { |