From 8cfe63155d49f70ffe3bdb1675c9d41485b41b1e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Jun 2018 16:57:12 +0200 Subject: loplugin:useuniqueptr in FmSearchDialog Change-Id: Icf2a8f2b334b1a0b9a7028fb1718710dd67c7a81 Reviewed-on: https://gerrit.libreoffice.org/55533 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/inc/cuifmsearch.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source/inc') diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx index 7256fe68f4c9..e137885de3c4 100644 --- a/cui/source/inc/cuifmsearch.hxx +++ b/cui/source/inc/cuifmsearch.hxx @@ -85,12 +85,12 @@ class FmSearchDialog final : public ModalDialog /// memorize the currently selected field for every context std::vector m_arrContextFields; - FmSearchEngine* m_pSearchEngine; + std::unique_ptr m_pSearchEngine; Timer m_aDelayedPaint; // see EnableSearchUI - ::svxform::FmSearchConfigItem* m_pConfig; + std::unique_ptr<::svxform::FmSearchConfigItem> m_pConfig; public: /** This can search in different sets of fields. There is a number of contexts; their names are in strContexts (separated by ';'), the user can choose one of them. -- cgit