diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-23 13:49:06 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-23 13:49:06 +0000 |
commit | 9ea09e2ba8af7ecceacb8ef35747c6345238d339 (patch) | |
tree | 7036353218a565e4fa4577966fdca5632d4999d0 /configmgr | |
parent | 0f5ebbd99372fd49e206cd3285e374c38f1e11f5 (diff) |
INTEGRATION: CWS configrefactor01 (1.4.84); FILE MERGED
2007/01/12 14:50:49 mmeeks 1.4.84.3: Another big prune of memory::Accessor ...
2007/01/11 10:35:41 mmeeks 1.4.84.2: Submitted by: mmeeks
Large scale re-factoring, remove fine-grained locking in favor of a simple,
single global lock (still in progress).
Identify and fix various hot-spots.
Remove otherwise empty / non-compiled files.
Kill UpdateAccessor
2007/01/08 20:49:05 mmeeks 1.4.84.1: Issue number:
Submitted by: mmeeks
Substantial configmgr re-factoring #1 ...
+ remove endless typedef chains
+ remove custom allocator & associated complexity
+ remove Pointer, and 'Address' classes
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/treemgr/viewaccess.hxx | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/configmgr/source/treemgr/viewaccess.hxx b/configmgr/source/treemgr/viewaccess.hxx index 7eaa62ba5ea8..bbfe397e7d1e 100644 --- a/configmgr/source/treemgr/viewaccess.hxx +++ b/configmgr/source/treemgr/viewaccess.hxx @@ -4,9 +4,9 @@ * * $RCSfile: viewaccess.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-08 04:36:30 $ + * last change: $Author: ihi $ $Date: 2007-11-23 14:49:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -57,17 +57,14 @@ namespace configmgr { //----------------------------------------------------------------------------- - class ViewTreeAccess - { + class ViewTreeAccess + { rtl::Reference< ViewStrategy > m_xStrategy; Tree m_aTree; - private: - data::Accessor accessor() const { return m_aTree.accessor(); } - public: explicit ViewTreeAccess(Tree const & _aTree); - ViewTreeAccess(data::Accessor const & _aAccessor, configuration::TreeImpl& _rTree); + explicit ViewTreeAccess(configuration::TreeImpl& _rTree); rtl::Reference< view::ViewStrategy > getViewBehavior() { return m_xStrategy; } public: @@ -168,13 +165,13 @@ namespace configmgr // value (element) node specific operations public: - /// Does this node assume its default value - /// retrieve the current value of this node - UnoAny getValue(ValueNode const& _aNode) const + /// Does this node assume its default value + /// retrieve the current value of this node + UnoAny getValue(ValueNode const& _aNode) const { return m_xStrategy->getValue(_aNode); } - /// get the type of this value - UnoType getValueType(ValueNode const& _aNode) const + /// get the type of this value + UnoType getValueType(ValueNode const& _aNode) const { return m_xStrategy->getValueType(_aNode); } @@ -255,9 +252,9 @@ namespace configmgr //----------------------------------------------------------------------------- inline - ViewTreeAccess::ViewTreeAccess(data::Accessor const & _aAccessor, configuration::TreeImpl& _rTree) - : m_xStrategy(_rTree.getViewBehavior()) - , m_aTree(_aAccessor,_rTree) + ViewTreeAccess::ViewTreeAccess(configuration::TreeImpl& _rTree) + : m_xStrategy(_rTree.getViewBehavior()) + , m_aTree(_rTree) { } |