simplify string initialisation
This commit is contained in:
parent
90d05f597d
commit
266310d478
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue