diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-06-29 11:55:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-06-29 13:57:50 +0200 |
commit | f31955add694f52add574b94ab181be3d388e832 (patch) | |
tree | 2b132545adcfc5fc94915d0c386e5d0bff1220e9 | |
parent | 8fe4a2cb1ad3b4819e069179cc11430c5127613c (diff) |
filter: remove rReserved1 completely in WrapOle1InOle2()
The comment above already states that this the Reserved1 field in the
spec, so there is no value in the additional reference.
Change-Id: I48bdda04ab536461a1eb5818df6a610f41d5fe95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118078
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | filter/source/msfilter/rtfutil.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/filter/source/msfilter/rtfutil.cxx b/filter/source/msfilter/rtfutil.cxx index 633a6df03dc1..67507e4c3a05 100644 --- a/filter/source/msfilter/rtfutil.cxx +++ b/filter/source/msfilter/rtfutil.cxx @@ -65,9 +65,8 @@ void WrapOle1InOle2(SvStream& rOle1, sal_uInt32 nOle1Size, SvStream& rOle2, // AnsiClipboardFormat pCompObj->WriteUInt32(0x00000000); // Reserved1 - const OString& rReserved1(rClassName); - pCompObj->WriteUInt32(rReserved1.getLength() + 1); - pCompObj->WriteOString(rReserved1); + pCompObj->WriteUInt32(rClassName.getLength() + 1); + pCompObj->WriteOString(rClassName); pCompObj->WriteChar(0); // UnicodeMarker pCompObj->WriteUInt32(0x71B239F4); |