summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 14:49:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 09:57:24 +0200
commit4250b25c6ae361359300ab6ccde27230f8e01039 (patch)
tree916a8420282928a92ede0760d696997550ae0840 /registry
parent2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff)
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/registry.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/registry/source/registry.cxx b/registry/source/registry.cxx
index 8a454545b37e..157887d9d28c 100644
--- a/registry/source/registry.cxx
+++ b/registry/source/registry.cxx
@@ -185,7 +185,7 @@ static RegError REGISTRY_CALLTYPE closeRegistry(RegHandle hReg)
RegError ret = RegError::NO_ERROR;
if (pReg->release() == 0)
{
- delete(pReg);
+ delete pReg;
hReg = nullptr;
}
else
@@ -217,7 +217,7 @@ static RegError REGISTRY_CALLTYPE destroyRegistry(RegHandle hReg,
{
if (!registryName->length)
{
- delete(pReg);
+ delete pReg;
hReg = nullptr;
}
}
@@ -383,7 +383,7 @@ RegError REGISTRY_CALLTYPE reg_closeRegistry(RegHandle hRegistry)
if (hRegistry)
{
ORegistry* pReg = static_cast<ORegistry*>(hRegistry);
- delete(pReg);
+ delete pReg;
return RegError::NO_ERROR;
} else
{