diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-16 16:41:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-17 14:03:19 +0200 |
commit | 4c2d0b0d85eabc5228b3777d3519482c52a0f96b (patch) | |
tree | dff08f6a2fb82ac477118c952b9741fc9373ee84 /sc/source/ui/inc/tabview.hxx | |
parent | d6bd9c273483b12f1bb2ae398afdba977e3ec336 (diff) |
loplugin:useuniqueptr in ScTabView
Change-Id: Ic506f5d350abbbbb5912e3ebf753e02821c76841
Reviewed-on: https://gerrit.libreoffice.org/57523
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc/tabview.hxx')
-rw-r--r-- | sc/source/ui/inc/tabview.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index 4c321ec1653f..7dfcaea6de79 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -137,13 +137,13 @@ private: VclPtr<vcl::Window> pFrameWin; // First !!! ScViewData aViewData; // must be at the front ! - ScViewSelectionEngine* pSelEngine; + std::unique_ptr<ScViewSelectionEngine> pSelEngine; ScViewFunctionSet aFunctionSet; - ScHeaderSelectionEngine* pHdrSelEng; + std::unique_ptr<ScHeaderSelectionEngine> pHdrSelEng; ScHeaderFunctionSet aHdrFunc; - ScDrawView* pDrawView; + std::unique_ptr<ScDrawView> pDrawView; Size aFrameSize; // passed on as for DoResize Point aBorderPos; @@ -346,13 +346,13 @@ public: const ScViewData& GetViewData() const { return aViewData; } ScViewFunctionSet& GetFunctionSet() { return aFunctionSet; } - ScViewSelectionEngine* GetSelEngine() { return pSelEngine; } + ScViewSelectionEngine* GetSelEngine() { return pSelEngine.get(); } bool SelMouseButtonDown( const MouseEvent& rMEvt ); - ScDrawView* GetScDrawView() { return pDrawView; } + ScDrawView* GetScDrawView() { return pDrawView.get(); } // against CLOKs - SdrView* GetSdrView() { return pDrawView; } + SdrView* GetSdrView() { return pDrawView.get(); } bool IsMinimized() const { return bMinimized; } |