summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-30 16:11:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-30 16:11:13 +0100
commit4d6ec3c61979c0db4d2af1e05d4d55a4ef6e0c2b (patch)
treee6d71d4ab2d9916a972280154bc8f76803cca534 /framework
parentc1aecc167f5164fffac6883dc37e33be5e42e200 (diff)
small startup optimization
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/substitutepathvars.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 16f2f9d7e01b..446e3aa9015f 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -286,7 +286,7 @@ void SubstitutePathVariables_Impl::GetSharePointsRules( SubstituteVariables& aSu
while ( nSharePoints < aSharePointNames.getLength() )
{
rtl::OUString aSharePointNodeName( m_aSharePointsNodeName );
- aSharePointNodeName += rtl::OUString::createFromAscii( "/" );
+ aSharePointNodeName += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
aSharePointNodeName += aSharePointNames[ nSharePoints ];
SubstituteRuleVector aRuleSet;
@@ -723,9 +723,9 @@ rtl::OUString SubstitutePathVariables::GetWorkPath() const
{
::comphelper::ConfigurationHelper::readDirectKey(
m_xServiceManager,
- ::rtl::OUString::createFromAscii("org.openoffice.Office.Paths"),
- ::rtl::OUString::createFromAscii("Paths/Work"),
- ::rtl::OUString::createFromAscii("WritePath"),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Paths")),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Paths/Work")),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WritePath")),
::comphelper::ConfigurationHelper::E_READONLY) >>= aWorkPath;
}
catch(RuntimeException &)
@@ -748,9 +748,9 @@ rtl::OUString SubstitutePathVariables::GetWorkVariableValue() const
{
::comphelper::ConfigurationHelper::readDirectKey(
m_xServiceManager,
- ::rtl::OUString::createFromAscii("org.openoffice.Office.Paths"),
- ::rtl::OUString::createFromAscii("Variables"),
- ::rtl::OUString::createFromAscii("Work"),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Paths")),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Variables")),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Work")),
::comphelper::ConfigurationHelper::E_READONLY) >>= aWorkPath;
}
catch(RuntimeException &)