From 200ca388246e525f6e8f909766977f534c0c897e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Jun 2018 15:32:52 +0200 Subject: teach useuniqueptr loplugin about calling delete on a param which is often a useful indicator that the callers can be made to use std::unique_ptr Change-Id: Idb1745d1f58dbcf389c9f60f1a5728d7d092ade5 Reviewed-on: https://gerrit.libreoffice.org/56238 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/config.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/tools/config.hxx') diff --git a/include/tools/config.hxx b/include/tools/config.hxx index d6a00aa61d64..76e4270b5e9d 100644 --- a/include/tools/config.hxx +++ b/include/tools/config.hxx @@ -21,6 +21,7 @@ #include #include +#include struct ImplConfigData; struct ImplGroupData; @@ -30,7 +31,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC Config private: OUString maFileName; OString maGroupName; - ImplConfigData* mpData; + std::unique_ptr mpData; ImplGroupData* mpActGroup; sal_uInt32 mnDataUpdateId; -- cgit