diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-03 10:31:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-04 08:36:07 +0200 |
commit | a618f06d1f6c480d46eb0630f82e25963c654a35 (patch) | |
tree | 20cf26cd8f8d424cb78a4d1f0fd681b8f27504fb /sc/source/ui/inc/preview.hxx | |
parent | 2720dbe9f79b6d954f40b9b50aeb8ddd267a4b36 (diff) |
loplugin:useuniqueptr in ScPreview
Change-Id: I081066d34ed6b134b5354f8df7f9801356ef181c
Reviewed-on: https://gerrit.libreoffice.org/56907
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc/preview.hxx')
-rw-r--r-- | sc/source/ui/inc/preview.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx index a43002c545ae..ac4e8f5ed6e8 100644 --- a/sc/source/ui/inc/preview.hxx +++ b/sc/source/ui/inc/preview.hxx @@ -51,8 +51,8 @@ private: long nTotalPages; Size aPageSize; // for GetOptimalZoom ScPrintState aState; - ScPreviewLocationData* pLocationData; // stores table layout for accessibility API - FmFormView* pDrawView; + std::unique_ptr<ScPreviewLocationData> pLocationData; // stores table layout for accessibility API + std::unique_ptr<FmFormView> pDrawView; // internal: ScDocShell* pDocShell; @@ -156,7 +156,7 @@ public: DECL_STATIC_LINK( ScPreview, InvalidateHdl, void*, void ); static void StaticInvalidate(); - FmFormView* GetDrawView() { return pDrawView; } + FmFormView* GetDrawView() { return pDrawView.get(); } SC_DLLPUBLIC void SetSelectedTabs(const ScMarkData& rMark); const ScMarkData::MarkedTabsType& GetSelectedTabs() const { return maSelectedTabs; } |