diff options
author | David Tardon <dtardon@redhat.com> | 2010-11-22 07:53:17 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-22 07:53:17 +0100 |
commit | 43a9042c5062374d8a7d787a5df7652b1b471682 (patch) | |
tree | 7c3b5b764648a5bbd29ca492429020b03cc846dc | |
parent | c0eb310c3e62c25fa497fa3a75f0bcb00cfa59b9 (diff) |
simplify string initialisation
-rw-r--r-- | framework/source/jobs/jobdata.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx index 09b2165a94..be79697018 100644 --- a/framework/source/jobs/jobdata.cxx +++ b/framework/source/jobs/jobdata.cxx @@ -181,8 +181,7 @@ void JobData::setAlias( const ::rtl::OUString& sAlias ) // try to open the configuration set of this job directly and get a property access to it // We open it readonly here - ::rtl::OUString sKey; - sKey = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(JOBCFG_ROOT)); + ::rtl::OUString sKey(RTL_CONSTASCII_USTRINGPARAM(JOBCFG_ROOT)); sKey += ::utl::wrapConfigurationElementName(m_sAlias); ConfigAccess aConfig(m_xSMGR, sKey); @@ -312,8 +311,7 @@ void JobData::setJobConfig( const css::uno::Sequence< css::beans::NamedValue >& // It doesn't matter if this config object was already opened before. // It doesn nothing here then ... or it change the mode automaticly, if // it was opened using another one before. - ::rtl::OUString sKey; - sKey = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(JOBCFG_ROOT)); + ::rtl::OUString sKey(RTL_CONSTASCII_USTRINGPARAM(JOBCFG_ROOT)); sKey += ::utl::wrapConfigurationElementName(m_sAlias); ConfigAccess aConfig(m_xSMGR, sKey); |