summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-04 08:29:36 +0200
committerNoel Grandin <noel@peralex.com>2015-11-04 14:10:44 +0200
commit59b072e22b0610abc7ffdbc75873ef5cbba58de7 (patch)
tree663c2d01a983508f9b22ec87fae29b16ab5a1683 /ucb/source/ucp/hierarchy
parentbaa411b59c3840a4dddf5447a0b4583eb5edea74 (diff)
yyyyy
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
Diffstat (limited to 'ucb/source/ucp/hierarchy')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.cxx31
1 files changed, 11 insertions, 20 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx
index 366bd2d0d4f5..0e2ff62efdb9 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx
@@ -328,9 +328,7 @@ bool HierarchyEntry::setData(
}
else
{
- xParentNameAccess->getByName(
- OUString("Children") )
- >>= xNameAccess;
+ xParentNameAccess->getByName("Children") >>= xNameAccess;
}
if ( xNameAccess->hasByName( m_aName ) )
@@ -376,8 +374,7 @@ bool HierarchyEntry::setData(
{
// Append new entry to parents child list,
// which is a set of entries.
- xParentNameAccess->getByName(
- OUString( "Children" ) ) >>= xFac;
+ xParentNameAccess->getByName("Children") >>= xFac;
}
OSL_ENSURE( xFac.is(),
@@ -408,7 +405,7 @@ bool HierarchyEntry::setData(
{
// Set Title value.
xNameReplace->replaceByName(
- OUString("Title"),
+ "Title",
uno::makeAny( rData.getTitle() ) );
// Set TargetURL value.
@@ -424,14 +421,14 @@ bool HierarchyEntry::setData(
= m_xOfficeInstDirs->makeRelocatableURL( aValue );
xNameReplace->replaceByName(
- OUString("TargetURL"),
+ "TargetURL",
uno::makeAny( aValue ) );
// Set Type value.
sal_Int32 nType
= rData.getType() == HierarchyEntryData::LINK ? 0 : 1;
xNameReplace->replaceByName(
- OUString("Type"),
+ "Type",
uno::makeAny( nType ) );
if ( xContainer.is() )
@@ -636,9 +633,7 @@ bool HierarchyEntry::move(
}
else
{
- xOldParentNameAccess->getByName(
- OUString("Children") )
- >>= xOldNameContainer;
+ xOldParentNameAccess->getByName("Children") >>= xOldNameContainer;
}
aEntry = xOldNameContainer->getByName( m_aName );
@@ -715,9 +710,7 @@ bool HierarchyEntry::move(
}
else
{
- xNewParentNameAccess->getByName(
- OUString("Children") )
- >>= xNewNameContainer;
+ xNewParentNameAccess->getByName("Children") >>= xNewNameContainer;
}
}
else
@@ -727,7 +720,7 @@ bool HierarchyEntry::move(
return false;
xNewNameReplace->replaceByName(
- OUString("Title"),
+ "Title",
uno::makeAny( rData.getTitle() ) );
// TargetURL property may contain a reference to the Office
@@ -739,11 +732,11 @@ bool HierarchyEntry::move(
if ( m_xOfficeInstDirs.is() && !aValue.isEmpty() )
aValue = m_xOfficeInstDirs->makeRelocatableURL( aValue );
xNewNameReplace->replaceByName(
- OUString("TargetURL"),
+ "TargetURL",
uno::makeAny( aValue ) );
sal_Int32 nType = rData.getType() == HierarchyEntryData::LINK ? 0 : 1;
xNewNameReplace->replaceByName(
- OUString("Type"),
+ "Type",
uno::makeAny( nType ) );
xNewNameContainer->insertByName( aNewKey, aEntry );
@@ -852,9 +845,7 @@ bool HierarchyEntry::remove()
{
// Append new entry to parents child list,
// which is a set of entries.
- xParentNameAccess->getByName(
- OUString("Children") )
- >>= xContainer;
+ xParentNameAccess->getByName("Children") >>= xContainer;
}
OSL_ENSURE( xContainer.is(),