diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-20 14:37:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-23 07:56:34 +0200 |
commit | a232712f39ab6bc91f9f531d0861dd2096998c79 (patch) | |
tree | 8e95417aa3e6eea21010030908d8e4b354237c2d /sc/source/ui/inc/seltrans.hxx | |
parent | 8abcd0c38707a61fe5175840f19c2d0a9f8825ee (diff) |
use rtl::Reference in ScSelectionTransferObj
instead of manual acquire/release
Change-Id: I056fc3767f2e7b3ffacdd930e9a8e3b71c32620e
Diffstat (limited to 'sc/source/ui/inc/seltrans.hxx')
-rw-r--r-- | sc/source/ui/inc/seltrans.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/inc/seltrans.hxx b/sc/source/ui/inc/seltrans.hxx index 438818b28f61..cb757fbd6d14 100644 --- a/sc/source/ui/inc/seltrans.hxx +++ b/sc/source/ui/inc/seltrans.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SC_SOURCE_UI_INC_SELTRANS_HXX #include <svtools/transfer.hxx> +#include <rtl/ref.hxx> class ScTabView; class ScTransferObj; @@ -41,10 +42,10 @@ enum ScSelectionTransferMode class ScSelectionTransferObj : public TransferableHelper { private: - ScTabView* pView; - ScSelectionTransferMode eMode; - ScTransferObj* pCellData; - ScDrawTransferObj* pDrawData; + ScTabView* pView; + ScSelectionTransferMode eMode; + rtl::Reference<ScTransferObj> mxCellData; + rtl::Reference<ScDrawTransferObj> mxDrawData; ScSelectionTransferObj( ScTabView* pSource, ScSelectionTransferMode eNewMode ); void CreateCellData(); |