[Libreoffice-commits] core.git: filter/source
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 29 06:45:06 UTC 2021
filter/source/msfilter/rtfutil.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 88f003e1978c4c08c082d12e7856ac4a08710c34
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon Jun 28 20:16:15 2021 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Tue Jun 29 08:44:34 2021 +0200
filter: avoid unnecessary string copy
Change-Id: Ie3083bfed3827b66c85946c060149531293bb813
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118033
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/filter/source/msfilter/rtfutil.cxx b/filter/source/msfilter/rtfutil.cxx
index 0e840a59862a..633a6df03dc1 100644
--- a/filter/source/msfilter/rtfutil.cxx
+++ b/filter/source/msfilter/rtfutil.cxx
@@ -65,9 +65,9 @@ void WrapOle1InOle2(SvStream& rOle1, sal_uInt32 nOle1Size, SvStream& rOle2,
// AnsiClipboardFormat
pCompObj->WriteUInt32(0x00000000);
// Reserved1
- OString aReserved1(rClassName);
- pCompObj->WriteUInt32(aReserved1.getLength() + 1);
- pCompObj->WriteOString(aReserved1);
+ const OString& rReserved1(rClassName);
+ pCompObj->WriteUInt32(rReserved1.getLength() + 1);
+ pCompObj->WriteOString(rReserved1);
pCompObj->WriteChar(0);
// UnicodeMarker
pCompObj->WriteUInt32(0x71B239F4);
More information about the Libreoffice-commits
mailing list