From dfb3be7e15bf5a02a6c35a3b6f84aceb6214ce55 Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Tue, 17 Nov 2015 09:02:55 +0200
Subject: use unique_ptr for pImpl in vcl,vbahelper,uui

Change-Id: Icb7573c24c681a8fc0570d61b6a30dab91378eb8
---
 uui/source/requeststringresolver.cxx | 1 -
 uui/source/requeststringresolver.hxx | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'uui')

diff --git a/uui/source/requeststringresolver.cxx b/uui/source/requeststringresolver.cxx
index daf33164b667..d2ed7dc9b7c9 100644
--- a/uui/source/requeststringresolver.cxx
+++ b/uui/source/requeststringresolver.cxx
@@ -33,7 +33,6 @@ UUIInteractionRequestStringResolver::UUIInteractionRequestStringResolver(
 
 UUIInteractionRequestStringResolver::~UUIInteractionRequestStringResolver()
 {
-    delete m_pImpl;
 }
 
 OUString SAL_CALL
diff --git a/uui/source/requeststringresolver.hxx b/uui/source/requeststringresolver.hxx
index f15b292ef874..8d7c21e12a2a 100644
--- a/uui/source/requeststringresolver.hxx
+++ b/uui/source/requeststringresolver.hxx
@@ -25,6 +25,7 @@
 #include <com/sun/star/task/XInteractionRequestStringResolver.hpp>
 #include <com/sun/star/uno/XComponentContext.hpp>
 #include <cppuhelper/implbase.hxx>
+#include <memory>
 
 class UUIInteractionHelper;
 
@@ -47,7 +48,7 @@ public:
     rServiceFactory);
 
 private:
-    UUIInteractionHelper * m_pImpl;
+    std::unique_ptr<UUIInteractionHelper> m_pImpl;
 
     UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver &) = delete;
     void operator =(UUIInteractionRequestStringResolver&) = delete;
-- 
cgit