summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-04 19:00:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-05 07:59:05 +0200
commitd03041e19215592f21ba1222d3cfa29e1f94260a (patch)
treeb7d35eff22f0f8f2c2fe95392c194f709bac8e06 /sw/source/uibase/config
parent74145ccf0731cf39d57d092bb832884f6ef47ba5 (diff)
Drop bogus memsets
...that are both bad and unnecessary since 54604f01330063635fb974b0ab4335d6af851551 "loplugin:useuniqueptr in SwNumRulesWithName" changed SwNumRulesWithName::aFormats from an array of raw pointers to an array of std::unique_ptr. (GCC -Wclass-memaccess didn't catch that because it apparently fails when the argument is of array instead of pointer type.) Change-Id: I6a4a03b1d16c203118fc83c0c3c44646be39a5b3 Reviewed-on: https://gerrit.libreoffice.org/80254 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/uibase/config')
-rw-r--r--sw/source/uibase/config/uinums.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx
index e2663ceda664..f285855a176e 100644
--- a/sw/source/uibase/config/uinums.cxx
+++ b/sw/source/uibase/config/uinums.cxx
@@ -121,14 +121,8 @@ SwNumRulesWithName::SwNumRulesWithName( const SwNumRule &rCopy,
}
}
-SwNumRulesWithName::SwNumRulesWithName()
-{
- memset(aFormats, 0, sizeof(aFormats));
-}
-
SwNumRulesWithName::SwNumRulesWithName( const SwNumRulesWithName& rCopy )
{
- memset( aFormats, 0, sizeof( aFormats ));
*this = rCopy;
}