[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 6 09:55:36 UTC 2021


 vcl/source/filter/svm/SvmReader.cxx |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

New commits:
commit 6189a79cd3a589a403415d288389780167133797
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 6 09:45:51 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 6 11:54:59 2021 +0200

    elide some ctors
    
    Change-Id: I1cf5260ec57442e7c82b92db89227c08c943f689
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120103
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx
index 311a43fc8f50..ca1ab891cedf 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -647,8 +647,7 @@ rtl::Reference<MetaAction> SvmReader::TextHandler(ImplMetaReadData* pData)
 
     Point aPoint;
     aSerializer.readPoint(aPoint);
-    OUString aStr;
-    aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
+    OUString aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
     sal_uInt16 nTmpIndex(0);
     mrStream.ReadUInt16(nTmpIndex);
     sal_uInt16 nTmpLen(0);
@@ -692,8 +691,7 @@ rtl::Reference<MetaAction> SvmReader::TextArrayHandler(ImplMetaReadData* pData)
     aSerializer.readPoint(aPoint);
     pAction->SetPoint(aPoint);
 
-    OUString aStr;
-    aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
+    OUString aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
     pAction->SetText(aStr);
 
     sal_uInt16 nTmpIndex(0);
@@ -769,8 +767,7 @@ rtl::Reference<MetaAction> SvmReader::StretchTextHandler(ImplMetaReadData* pData
 
     Point aPoint;
     aSerializer.readPoint(aPoint);
-    OUString aStr;
-    aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
+    OUString aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
     sal_uInt32 nTmpWidth;
     mrStream.ReadUInt32(nTmpWidth);
     sal_uInt16 nTmpIndex(0);
@@ -800,8 +797,7 @@ rtl::Reference<MetaAction> SvmReader::TextRectHandler(ImplMetaReadData* pData)
 
     tools::Rectangle aRect;
     aSerializer.readRectangle(aRect);
-    OUString aStr;
-    aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
+    OUString aStr = mrStream.ReadUniOrByteString(pData->meActualCharSet);
     sal_uInt16 nTmp(0);
     mrStream.ReadUInt16(nTmp);
 


More information about the Libreoffice-commits mailing list