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