diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-30 16:11:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-30 16:11:13 +0100 |
commit | 173bb15fc2582b40e4839dcbaa7b69ff49129c57 (patch) | |
tree | 99ccda0aac1dc73cba7d32e5c2654497cdf30acf | |
parent | afb8e9d8d4680d3023133fa6840d1a8e539191d1 (diff) |
small startup optimization
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index a68ad38bd2..6ddbb4f149 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 &) |