diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:17:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:17:29 +0200 |
commit | dc4704ce1b067b62df0b0cf9cda3c4106d80292c (patch) | |
tree | 836d54ebc387cc58da0f7095dd3f79db4fb603e9 /sc/source/ui/docshell/docsh.cxx | |
parent | 347779c223eed6e41b952f49fc0c0d0bec59f846 (diff) |
loplugin:stringcopy: sc
Change-Id: Ic6cb5406d20e7e07b8e34514df71adf1c3a4e727
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 77db8cd073f4..03131b4be5cd 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -186,8 +186,8 @@ void ScDocShell::FillClass( SvGlobalName* pClassName, { *pClassName = SvGlobalName( SO3_SC_CLASSID_60 ); *pFormat = SotClipboardFormatId::STARCALC_60; - *pFullTypeName = OUString( ScResId( SCSTR_LONG_SCDOC_NAME ) ); - *pShortTypeName = OUString( ScResId( SCSTR_SHORT_SCDOC_NAME ) ); + *pFullTypeName = ScResId( SCSTR_LONG_SCDOC_NAME ); + *pShortTypeName = ScResId( SCSTR_SHORT_SCDOC_NAME ); } else if ( nFileFormat == SOFFICE_FILEFORMAT_8 ) { @@ -871,7 +871,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) // TODO/LATER: More entries from the MediaDescriptor might be interesting for the merge uno::Sequence< beans::PropertyValue > aValues(1); aValues[0].Name = "FilterName"; - aValues[0].Value <<= OUString( GetMedium()->GetFilter()->GetFilterName() ); + aValues[0].Value <<= GetMedium()->GetFilter()->GetFilterName(); const SfxStringItem* pPasswordItem = SfxItemSet::GetItem<SfxStringItem>(GetMedium()->GetItemSet(), SID_PASSWORD, false); if ( pPasswordItem && !pPasswordItem->GetValue().isEmpty() ) |