summaryrefslogtreecommitdiff
path: root/sc/source/core/inc/bcaslot.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/inc/bcaslot.hxx')
-rw-r--r--sc/source/core/inc/bcaslot.hxx6
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;