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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 5 11:22:32 UTC 2019


 i18nutil/source/utility/oneToOneMapping.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit d2c49bfde8e4e5f17cc80f5f5cc99ebb0aec1946
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Oct 5 08:09:09 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Oct 5 13:21:30 2019 +0200

    Drop bogus memset
    
    ..that is both bad and unnecessary since
    8003f8694ac7c4bc117f7ce692339534d37681f0 "loplugin:useuniqueptr in
    oneToOneMappingWithFlag" changed oneToOneMappingWithFlag::mpIndex from an array
    of raw pointers to an array of std::unique_ptr.
    
    Change-Id: I247a619ebd7804a8a4faee2797f8c4753f9c4ec6
    Reviewed-on: https://gerrit.libreoffice.org/80288
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/i18nutil/source/utility/oneToOneMapping.cxx b/i18nutil/source/utility/oneToOneMapping.cxx
index d321b49de765..ea8afdeb1fcc 100644
--- a/i18nutil/source/utility/oneToOneMapping.cxx
+++ b/i18nutil/source/utility/oneToOneMapping.cxx
@@ -18,7 +18,6 @@
  */
 
 #include <i18nutil/oneToOneMapping.hxx>
-#include <string.h>
 
 namespace i18nutil {
 
@@ -63,7 +62,6 @@ oneToOneMappingWithFlag::oneToOneMappingWithFlag( UnicodePairWithFlag const *rpT
       mnFlag    ( rnFlag ),
       mbHasIndex( false )
 {
-    memset(mpIndex, 0, sizeof(mpIndex));
 }
 
 oneToOneMappingWithFlag::~oneToOneMappingWithFlag()


More information about the Libreoffice-commits mailing list