summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-04 14:25:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 08:25:47 +0200
commitb2c9f0045b62829d09607bb69cd6480ea18b6c25 (patch)
tree7ec041d588dd21d0adba27d5acce557536156835 /include
parent5fc92b9232a8f8125477f4b458c2418829815e53 (diff)
loplugin:useuniqueptr in GraphCtrl
Change-Id: I47299326467e31b72094a4fa7de6dbe8dd3ced7e Reviewed-on: https://gerrit.libreoffice.org/55515 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/graphctl.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/graphctl.hxx b/include/svx/graphctl.hxx
index de9b0e7d9060..6803854983f3 100644
--- a/include/svx/graphctl.hxx
+++ b/include/svx/graphctl.hxx
@@ -58,7 +58,7 @@ class SVX_DLLPUBLIC GraphCtrl : public Control
MapMode aMap100;
Size aGraphSize;
Point aMousePos;
- GraphCtrlUserCall* pUserCall;
+ std::unique_ptr<GraphCtrlUserCall> pUserCall;
SdrObjKind eObjKind;
sal_uInt16 nPolyEdit;
bool bEditMode;
@@ -71,8 +71,8 @@ class SVX_DLLPUBLIC GraphCtrl : public Control
protected:
- SdrModel* pModel;
- SdrView* pView;
+ std::unique_ptr<SdrModel> pModel;
+ std::unique_ptr<SdrView> pView;
virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
virtual void Resize() override;
@@ -87,7 +87,7 @@ protected:
virtual void SdrObjChanged( const SdrObject& rObj );
virtual void MarkListHasChanged();
- SdrObjUserCall* GetSdrUserCall() { return pUserCall; }
+ SdrObjUserCall* GetSdrUserCall() { return pUserCall.get(); }
public:
@@ -108,8 +108,8 @@ public:
void SetObjKind( const SdrObjKind eObjKind );
- SdrModel* GetSdrModel() const { return pModel; }
- SdrView* GetSdrView() const { return pView; }
+ SdrModel* GetSdrModel() const { return pModel.get(); }
+ SdrView* GetSdrView() const { return pView.get(); }
SdrObject* GetSelectedSdrObject() const;
bool IsChanged() const { return mbSdrMode && pModel->IsChanged(); }