diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-12 18:58:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 08:30:26 +0200 |
commit | 647e11dc2fcbf0c8f7e39f4260d2b89057267e36 (patch) | |
tree | b90e69042d1b95c59c3d4e5918d64ed3b2bbad3e /sc/source/core/inc/bcaslot.hxx | |
parent | d9e8fdbcd2f834a483890b409ede1b44c2da5da3 (diff) |
loplugin:useuniqueptr in sc
Change-Id: I004e1f0292c8a40515880546574255ab835dbdbe
Reviewed-on: https://gerrit.libreoffice.org/39875
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/inc/bcaslot.hxx')
-rw-r--r-- | sc/source/core/inc/bcaslot.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/inc/bcaslot.hxx b/sc/source/core/inc/bcaslot.hxx index ce5f33384124..af2fdaf540b0 100644 --- a/sc/source/core/inc/bcaslot.hxx +++ b/sc/source/core/inc/bcaslot.hxx @@ -265,17 +265,17 @@ private: public: TableSlots(); ~TableSlots(); - ScBroadcastAreaSlot** getSlots() { return ppSlots; } + ScBroadcastAreaSlot** getSlots() { return ppSlots.get(); } /** Obtain slot pointer, no check on validity! It is assumed that all calls are made with the results of ComputeSlotOffset(), ComputeAreaPoints() and ComputeNextSlot() */ - ScBroadcastAreaSlot* getAreaSlot( SCSIZE nOff ) { return *(ppSlots + nOff); } + ScBroadcastAreaSlot* getAreaSlot( SCSIZE nOff ) { return ppSlots[nOff]; } private: - ScBroadcastAreaSlot** ppSlots; + std::unique_ptr<ScBroadcastAreaSlot*[]> ppSlots; TableSlots( const TableSlots& ) = delete; TableSlots& operator=( const TableSlots& ) = delete; |