diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-11-06 13:51:12 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-11-06 13:51:12 +0000 |
commit | b87b8c3137bddcaf13f064fbf0210f5c90298279 (patch) | |
tree | b83c7b36374ce4c4d9ab6e5b5aaaca6b31b21623 /configmgr/source | |
parent | f01accbf32104a66eb276a58af148296569ea1c3 (diff) |
INTEGRATION: CWS sb63 (1.5.8); FILE MERGED
2006/10/20 10:13:27 sb 1.5.8.1: #i69914#, #i69982# Patch by mmeeks: cleanup and memory shrink.
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/tree/treefragment.cxx | 12 | ||||
-rw-r--r-- | configmgr/source/tree/treesegment.cxx | 12 |
2 files changed, 11 insertions, 13 deletions
diff --git a/configmgr/source/tree/treefragment.cxx b/configmgr/source/tree/treefragment.cxx index 06f9a779604c..579db66151bb 100644 --- a/configmgr/source/tree/treefragment.cxx +++ b/configmgr/source/tree/treefragment.cxx @@ -4,9 +4,9 @@ * * $RCSfile: treefragment.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: obo $ $Date: 2006-09-16 15:23:20 $ + * last change: $Author: kz $ $Date: 2006-11-06 14:51:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -52,16 +52,16 @@ namespace configmgr namespace sharable { //----------------------------------------------------------------------------- -rtl::OUString TreeFragment::getName(memory::Accessor const & _aAccessor) const +rtl::OUString TreeFragment::getName() const { - return readString(_aAccessor,this->header.name); + return readString(this->header.name); } //----------------------------------------------------------------------------- -bool TreeFragment::isNamed(rtl::OUString const & _aName, memory::Accessor const & _aAccessor) const +bool TreeFragment::isNamed(rtl::OUString const & _aName) const { // TODO: optimize comparison - return !!(this->getName(_aAccessor) == _aName); + return !!(this->getName() == _aName); } //----------------------------------------------------------------------------- diff --git a/configmgr/source/tree/treesegment.cxx b/configmgr/source/tree/treesegment.cxx index aae729e9441d..e9728a00782e 100644 --- a/configmgr/source/tree/treesegment.cxx +++ b/configmgr/source/tree/treesegment.cxx @@ -4,9 +4,9 @@ * * $RCSfile: treesegment.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: obo $ $Date: 2006-09-16 15:23:48 $ + * last change: $Author: kz $ $Date: 2006-11-06 14:51:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -231,9 +231,7 @@ TreeSegment::Name TreeSegment::getName() const if (!is()) return Name(); - Accessor accessor = getAccessor(); - - return configuration::makeElementName( getTreeData()->getName(accessor), Name::NoValidate() ); + return configuration::makeElementName( getTreeData()->getName(), Name::NoValidate() ); } // ----------------------------------------------------------------------------- @@ -247,11 +245,11 @@ void TreeSegment::setName(Name const & _aNewName) sharable::String aOldName = getTreeDataForUpdate(aUpdater)->header.name; - sharable::String aNewName = sharable::allocString(aUpdater.allocator(),_aNewName.toString()); + sharable::String aNewName = sharable::allocString(_aNewName.toString()); getTreeDataForUpdate(aUpdater)->header.name = aNewName; - sharable::freeString(aUpdater.allocator(),aOldName); + sharable::freeString(aOldName); } } // ----------------------------------------------------------------------------- |