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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Jul 11 20:07:10 UTC 2021


 vcl/source/filter/svm/SvmReader.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 75e246ee9bafddbb5e48b1781b54c9e5026b9c7e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jul 11 19:24:02 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 11 22:06:34 2021 +0200

    std::unique_ptr::reset on an empty std::unique_ptr doesn't do anything
    
    Change-Id: I3953a0e0c01a9a1a53ab37dc6aee991a635cd0f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118754
    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 679a6185c503..005417c16809 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -673,7 +673,6 @@ rtl::Reference<MetaAction> SvmReader::TextArrayHandler(ImplMetaReadData* pData)
     auto pAction = new MetaTextArrayAction();
 
     std::unique_ptr<tools::Long[]> aArray;
-    aArray.reset();
 
     VersionCompatRead aCompat(mrStream);
     TypeSerializer aSerializer(mrStream);


More information about the Libreoffice-commits mailing list