summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-31 15:40:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-12 08:43:48 +0200
commite4e4d5713e248f02faf7aa6199b11e152973de8e (patch)
tree836dffa89d0a966e41b1af8270db74b9590def22 /registry
parentd4eabd5da8ea3b5ac40659c22cde19b26b3c002b (diff)
clang-tidy readability-delete-null-pointer
which in turn triggered some loplugin:useuniqueptr Change-Id: I0c38561fc9b68dac44e8cf58c8aa1f582196cc64 Reviewed-on: https://gerrit.libreoffice.org/38281 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/reflwrit.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx
index ced57265ddd9..747855850632 100644
--- a/registry/source/reflwrit.cxx
+++ b/registry/source/reflwrit.cxx
@@ -702,8 +702,7 @@ TypeWriter::TypeWriter(typereg_Version version,
TypeWriter::~TypeWriter()
{
- if (m_superTypeNames)
- delete[] m_superTypeNames;
+ delete[] m_superTypeNames;
if (m_fieldCount)
delete[] m_fields;
@@ -714,8 +713,7 @@ TypeWriter::~TypeWriter()
if (m_referenceCount)
delete[] m_references;
- if (m_pUik)
- delete m_pUik;
+ delete m_pUik;
}
void TypeWriter::setSuperType(sal_uInt16 index, OString const & name)
OPT_ functions string more meaningful.Olivier Hallot 2019-12-22sal_Char->char in scaddins..sdextNoel Grandin 2019-12-12Remove some redundant user-provided dtorsStephan Bergmann 2019-11-29tdf#129098: parameters mixed in OPT_PROB_INMONEY (scaddins)Julien Nabet 2019-11-03loplugin:stringaddNoel Grandin 2019-10-17Rename OUStringLiteral1 to OUStringCharStephan Bergmann 2019-10-04add gbuild function for a common PCH and use it in sc/ and sax/Luboš Luňák 2019-10-01loplugin:stringadd in scNoel Grandin 2019-09-27Deduplicate O(U)StringNumber definitions; add toAsciiUpperCaseMike Kaganski 2019-09-24support O(U)String::number() for fast string concatenationLuboš Luňák 2019-08-17tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorJulien Nabet 2019-08-15loplugin:sequenceloop in scaddins..scriptingNoel Grandin 2019-08-12Fix typosAndrea Gelmini 2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): scaddinsStephan Bergmann 2019-07-30Simplify Sequence iterations in scaddins, sccomp, scriptingArkadiy Illarionov 2019-07-24Fix typosAndrea Gelmini 2019-05-24tdf#42949 Fix IWYU warnings in scaddins/Gabor Kelemen