[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Apr 6 19:09:18 UTC 2016
sw/source/filter/ww8/wrtww8.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2105f5b4403fcda7cdadbd108d6578ca759af219
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Apr 6 21:08:45 2016 +0200
Elide const var
Change-Id: Idbbfd0f3e8fc96550c99a0750ff466629d6007bf
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index a038aa1..81a9f2d 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -3375,7 +3375,6 @@ void WW8Export::ExportDocument_Impl()
void WW8Export::PrepareStorage()
{
- static const char pName[] = "Microsoft Word-Document";
static const sal_uInt8 pData[] =
{
0x01, 0x00, 0xFE, 0xFF, 0x03, 0x0A, 0x00, 0x00,
@@ -3401,7 +3400,8 @@ void WW8Export::PrepareStorage()
};
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) );
xStor->Write( pData, sizeof( pData ) );
More information about the Libreoffice-commits
mailing list