summaryrefslogtreecommitdiff
path: root/sw/inc/unosrch.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-13 11:33:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-16 14:48:28 +0200
commitd22cc61705239d9fcf6ee9597da8c883e3c79da4 (patch)
tree0bb631a5813d9c5d937c9eb15ccabadf5c17dc59 /sw/inc/unosrch.hxx
parent802afa88a85c32bd3a4a56fdc55971bab3f02a25 (diff)
loplugin:useuniqueptr in SwXTextSearch
Change-Id: I30fcea4f03b29dfcd434f4544d5c52dc7ca9d4a9 Reviewed-on: https://gerrit.libreoffice.org/57422 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/unosrch.hxx')
-rw-r--r--sw/inc/unosrch.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/unosrch.hxx b/sw/inc/unosrch.hxx
index bc2f3e0c7e51..2822f6439cfb 100644
--- a/sw/inc/unosrch.hxx
+++ b/sw/inc/unosrch.hxx
@@ -24,6 +24,7 @@
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/implbase.hxx>
#include <rtl/ustring.hxx>
+#include <memory>
class SfxItemPropertySet;
class SwSearchProperties_Impl;
@@ -45,8 +46,8 @@ class SwXTextSearch : public cppu::WeakImplHelper
OUString m_sSearchText;
OUString m_sReplaceText;
- SwSearchProperties_Impl* m_pSearchProperties;
- SwSearchProperties_Impl* m_pReplaceProperties;
+ std::unique_ptr<SwSearchProperties_Impl> m_pSearchProperties;
+ std::unique_ptr<SwSearchProperties_Impl> m_pReplaceProperties;
const SfxItemPropertySet* m_pPropSet;
bool m_bAll : 1;