summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/tabvwsh.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2016-11-23 16:59:23 -0500
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-06 20:41:12 -0500
commit13b5d1944cb84586ceaa2d79fb361a58fe62446c (patch)
tree6b45cdf7b6ba7a9faa72577ceb028dd2af777005 /sc/source/ui/inc/tabvwsh.hxx
parentd0ed70a83e86701778bf576b521203a979da6093 (diff)
Use std::unique_ptr for the input handler instance here.
Change-Id: I73024b4d49bc99fa2110f5f0f0b80f950ad57baa Reviewed-on: https://gerrit.libreoffice.org/31137 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> (cherry picked from commit 7fe08af6b1c579dc12da836b6bcfa2f84734328a)
Diffstat (limited to 'sc/source/ui/inc/tabvwsh.hxx')
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index cf60eb656d46..9c417c2554ec 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -115,7 +115,7 @@ private:
FmFormShell* pFormShell;
- ScInputHandler* pInputHandler; // for OLE input cell
+ std::unique_ptr<ScInputHandler> mpInputHandler; // for OLE input cell
::editeng::SvxBorderLine* pCurFrameLine;
@@ -236,7 +236,8 @@ public:
bool IsRefInputMode() const;
void ExecuteInputDirect();
- ScInputHandler* GetInputHandler() const { return pInputHandler;}
+ const ScInputHandler* GetInputHandler() const { return mpInputHandler.get(); }
+ ScInputHandler* GetInputHandler() { return mpInputHandler.get(); }
void UpdateInputHandler( bool bForce = false, bool bStopEditing = true );
void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust );
bool TabKeyInput(const KeyEvent& rKEvt);