Kaydet (Commit) 2105f5b4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Elide const var

Change-Id: Idbbfd0f3e8fc96550c99a0750ff466629d6007bf
üst 6720da5d
...@@ -3375,7 +3375,6 @@ void WW8Export::ExportDocument_Impl() ...@@ -3375,7 +3375,6 @@ void WW8Export::ExportDocument_Impl()
void WW8Export::PrepareStorage() void WW8Export::PrepareStorage()
{ {
static const char pName[] = "Microsoft Word-Document";
static const sal_uInt8 pData[] = static const sal_uInt8 pData[] =
{ {
0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00, 0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
...@@ -3401,7 +3400,8 @@ void WW8Export::PrepareStorage() ...@@ -3401,7 +3400,8 @@ void WW8Export::PrepareStorage()
}; };
SvGlobalName aGName(MSO_WW8_CLASSID); SvGlobalName aGName(MSO_WW8_CLASSID);
GetWriter().GetStorage().SetClass( aGName, SotClipboardFormatId::NONE, pName); GetWriter().GetStorage().SetClass(
aGName, SotClipboardFormatId::NONE, "Microsoft Word-Document");
tools::SvRef<SotStorageStream> xStor( GetWriter().GetStorage().OpenSotStream(sCompObj) ); tools::SvRef<SotStorageStream> xStor( GetWriter().GetStorage().OpenSotStream(sCompObj) );
xStor->Write( pData, sizeof( pData ) ); xStor->Write( pData, sizeof( pData ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment