diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 09:48:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-13 06:49:23 +0000 |
commit | e8b49f09074fe184374bee5062715357427ae044 (patch) | |
tree | b9cf1f5e3d7ab8b98345a512b6ddb0da42fe2919 /include/vcl/commandevent.hxx | |
parent | tdf#48140 replace CellRangeAddress in xlsx import (14) (diff) | |
download | core-e8b49f09074fe184374bee5062715357427ae044.tar.gz core-e8b49f09074fe184374bee5062715357427ae044.zip |
new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec
Reviewed-on: https://gerrit.libreoffice.org/32948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/commandevent.hxx')
-rw-r--r-- | include/vcl/commandevent.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx index 51dab89536c3..8d9496de97cb 100644 --- a/include/vcl/commandevent.hxx +++ b/include/vcl/commandevent.hxx @@ -91,7 +91,7 @@ class VCL_DLLPUBLIC CommandExtTextInputData { private: OUString maText; - ExtTextInputAttr* mpTextAttr; + std::unique_ptr<ExtTextInputAttr[]> mpTextAttr; sal_Int32 mnCursorPos; sal_uInt16 mnCursorFlags; bool mbOnlyCursor; @@ -106,7 +106,7 @@ public: ~CommandExtTextInputData(); const OUString& GetText() const { return maText; } - const ExtTextInputAttr* GetTextAttr() const { return mpTextAttr; } + const ExtTextInputAttr* GetTextAttr() const { return mpTextAttr.get(); } sal_Int32 GetCursorPos() const { return mnCursorPos; } bool IsCursorVisible() const { return (mnCursorFlags & EXTTEXTINPUT_CURSOR_INVISIBLE) == 0; } |