summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-03 14:08:48 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-03 14:08:48 +0100
commit54215626ef72aa170a27f468aae57c9b4667cb87 (patch)
tree9f0e6865a2521c8186e0d5bc1de798575c6e6ba8 /dbaccess
parent68fa66ca83777ec88156677cdf4b0765c8de1a8c (diff)
dba33b: #i107369# don't use hierachical access when reading the node values, this is not supported with non-trivial names (e.g. names containing spaces etc.)
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databaseregistrations.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/dbaccess/source/core/dataaccess/databaseregistrations.cxx b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
index 5b4f42586a4b..28beb9664110 100644
--- a/dbaccess/source/core/dataaccess/databaseregistrations.cxx
+++ b/dbaccess/source/core/dataaccess/databaseregistrations.cxx
@@ -270,12 +270,8 @@ namespace dbaccess
++pName, ++pDisplayName
)
{
- ::rtl::OUStringBuffer aNodePath;
- aNodePath.append( *pName );
- aNodePath.append( sal_Unicode( '/' ) );
- aNodePath.append( getNameNodeName() );
-
- OSL_VERIFY( m_aConfigurationRoot.getNodeValue( aNodePath.makeStringAndClear() ) >>= *pDisplayName );
+ ::utl::OConfigurationNode aRegistrationNode = m_aConfigurationRoot.openNode( *pName );
+ OSL_VERIFY( aRegistrationNode.getNodeValue( getNameNodeName() ) >>= *pDisplayName );
}