summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vbahelper/vbaapplicationbase.hxx3
-rw-r--r--include/vcl/textview.hxx7
-rw-r--r--uui/source/requeststringresolver.cxx1
-rw-r--r--uui/source/requeststringresolver.hxx3
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx1
-rw-r--r--vcl/source/edit/textview.cxx1
6 files changed, 8 insertions, 8 deletions
diff --git a/include/vbahelper/vbaapplicationbase.hxx b/include/vbahelper/vbaapplicationbase.hxx
index 7f46069f4b5e..5d809b8a8fe9 100644
--- a/include/vbahelper/vbaapplicationbase.hxx
+++ b/include/vbahelper/vbaapplicationbase.hxx
@@ -23,6 +23,7 @@
#include <ooo/vba/XApplicationBase.hpp>
#include <vbahelper/vbahelperinterface.hxx>
#include <sfx2/objsh.hxx>
+#include <memory>
typedef InheritedHelperInterfaceWeakImpl< ov::XApplicationBase > ApplicationBase_BASE;
@@ -30,7 +31,7 @@ struct VbaApplicationBase_Impl;
class VBAHELPER_DLLPUBLIC VbaApplicationBase : public ApplicationBase_BASE
{
- VbaApplicationBase_Impl* m_pImpl;
+ std::unique_ptr<VbaApplicationBase_Impl> m_pImpl;
protected:
VbaApplicationBase( const css::uno::Reference< css::uno::XComponentContext >& xContext );
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx
index 44e4ef52d3ae..e5bc8c0e93e1 100644
--- a/include/vcl/textview.hxx
+++ b/include/vcl/textview.hxx
@@ -26,6 +26,7 @@
#include <vcl/dndhelp.hxx>
#include <vcl/textdata.hxx>
#include <vcl/window.hxx>
+#include <memory>
class TextEngine;
class OutputDevice;
@@ -53,10 +54,10 @@ class VCL_DLLPUBLIC TextView : public vcl::unohelper::DragAndDropClient
friend class ExtTextView;
private:
- ImpTextView* mpImpl;
+ std::unique_ptr<ImpTextView> mpImpl;
- TextView( const TextView& ) : vcl::unohelper::DragAndDropClient() {}
- TextView& operator=( const TextView& ) { return *this; }
+ TextView( const TextView& ) = delete;
+ TextView& operator=( const TextView& ) = delete;
protected:
void ShowSelection();
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;
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
index 84230667651b..b468f8c0e16c 100644
--- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx
+++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
@@ -175,7 +175,6 @@ VbaApplicationBase::VbaApplicationBase( const uno::Reference< uno::XComponentCon
VbaApplicationBase::~VbaApplicationBase()
{
- delete m_pImpl;
}
sal_Bool SAL_CALL
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index 28bdd32ac37d..cde8c85d6925 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -243,7 +243,6 @@ TextView::~TextView()
mpImpl->mpWindow->SetCursor( nullptr );
delete mpImpl->mpCursor;
delete mpImpl->mpDDInfo;
- delete mpImpl;
}
void TextView::Invalidate()