Kaydet (Commit) b87b8c31 authored tarafından Kurt Zenker's avatar Kurt Zenker

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.
üst f01accbf
......@@ -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);
}
//-----------------------------------------------------------------------------
......
......@@ -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);
}
}
// -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment