diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 11:22:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 08:36:06 +0200 |
commit | f12f51316a2cb230138ec6dcdc7295e18b6fce28 (patch) | |
tree | 804d24d28af3c15026353fa780199e642c7d5cf1 /sc/source/ui/docshell/docsh.cxx | |
parent | 2ac50736e4a3d442a43d3f9d368be45c57ad9285 (diff) |
remove unnecessary use of OUString constructor in SC module
Change-Id: I2d40c589eb3b5c99300f36cd705c32cf824b2a98
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index b8f35791707d..490358a5b602 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -198,7 +198,7 @@ void ScDocShell::FillClass( SvGlobalName* pClassName, { *pClassName = SvGlobalName( SO3_SC_CLASSID_60 ); *pFormat = bTemplate ? SOT_FORMATSTR_ID_STARCALC_8_TEMPLATE : SOT_FORMATSTR_ID_STARCALC_8; - *pFullTypeName = OUString("calc8"); + *pFullTypeName = "calc8"; *pShortTypeName = ScResId(SCSTR_SHORT_SCDOC_NAME).toString(); } else @@ -832,14 +832,14 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) uno::Reference< frame::XStorable > xStor( GetModel(), uno::UNO_QUERY_THROW ); // TODO/LATER: More entries from the MediaDescriptor might be interesting for the merge uno::Sequence< beans::PropertyValue > aValues(1); - aValues[0].Name = OUString( "FilterName"); + aValues[0].Name = "FilterName"; aValues[0].Value <<= OUString( GetMedium()->GetFilter()->GetFilterName() ); SFX_ITEMSET_ARG( GetMedium()->GetItemSet(), pPasswordItem, SfxStringItem, SID_PASSWORD, false); if ( pPasswordItem && !pPasswordItem->GetValue().isEmpty() ) { aValues.realloc( 2 ); - aValues[1].Name = OUString("Password"); + aValues[1].Name = "Password"; aValues[1].Value <<= pPasswordItem->GetValue(); } @@ -1908,7 +1908,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt switch ( eType ) { case CELLTYPE_NONE: - aString = OUString(); + aString = ""; bString = false; break; case CELLTYPE_FORMULA : @@ -1992,7 +1992,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt break; default: OSL_FAIL( "ScDocShell::AsciiSave: unknown CellType" ); - aString = OUString(); + aString = ""; bString = false; } |