diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-04 21:58:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 07:59:50 +0200 |
commit | 594923028b45d55ef7cac3b28ded0d132dca2831 (patch) | |
tree | 1c312447a7f5afdcc8da8168d820aeb9561165f2 /sw | |
parent | 52c3aae9b0ee9a3fb7cd38b6c4bb0b95916a1812 (diff) |
Drop bogus memset
...that is both bad and unnecessary since
57871f98d30c0283969de1a41e72f5838d6c0eb0 "loplugin:useuniqueptr in SwNumRule"
changed SwNumRule::maFormats from an array of raw pointers to an array of
std::unique_ptr.
Change-Id: I0cb05f022b2f067c0b62ecd42878377b139ec4fe
Reviewed-on: https://gerrit.libreoffice.org/80281
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/number.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index dc438629e487..17bcd6ab9519 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -20,7 +20,6 @@ #include <memory> #include <hintids.hxx> -#include <string.h> #include <vcl/font.hxx> #include <editeng/brushitem.hxx> #include <editeng/lrspitem.hxx> @@ -442,7 +441,6 @@ SwNumRule::SwNumRule( const OUString& rNm, SwNumRule::maLabelAlignmentBaseFormats[ OUTLINE_RULE ][ n ] = pFormat; } } - memset( maFormats, 0, sizeof( maFormats )); OSL_ENSURE( !msName.isEmpty(), "NumRule without a name!" ); } |