diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-17 09:02:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-17 10:59:47 +0200 |
commit | dfb3be7e15bf5a02a6c35a3b6f84aceb6214ce55 (patch) | |
tree | af7aa947a025ee08eeee4db41858dfa6550f58d9 /include/vcl/textview.hxx | |
parent | b4bd157d0fffcd83e7461de35ee9105b53d21314 (diff) |
use unique_ptr for pImpl in vcl,vbahelper,uui
Change-Id: Icb7573c24c681a8fc0570d61b6a30dab91378eb8
Diffstat (limited to 'include/vcl/textview.hxx')
-rw-r--r-- | include/vcl/textview.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
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(); |