diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-17 15:05:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-18 13:59:38 +0100 |
commit | fd31291cd564087ed71b8acdf79fb6797fdb06e7 (patch) | |
tree | ed5f27a4cb71fe5f06e0c1c0261aa3c05b09bcfe /sw/inc | |
parent | 484591a0c4a8f006701cb2ced75e279aacdd69c1 (diff) |
use unique_ptr in SwCursorMoveState
Change-Id: I39e67d24a38df71309f5cb4a82165c14e5640556
Reviewed-on: https://gerrit.libreoffice.org/66569
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/crstate.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx index 56bbfac15f58..528b572efa68 100644 --- a/sw/inc/crstate.hxx +++ b/sw/inc/crstate.hxx @@ -130,7 +130,7 @@ enum CursorMoveState struct SwCursorMoveState { SwFillCursorPos *m_pFill; ///< for automatic filling with tabs etc - Sw2LinesPos *m_p2Lines; ///< for selections inside/around 2line portions + std::unique_ptr<Sw2LinesPos> m_p2Lines; ///< for selections inside/around 2line portions SwSpecialPos* m_pSpecialPos; ///< for positions inside fields Point m_aRealHeight; ///< contains then the position/height of the cursor CursorMoveState m_eState; @@ -163,7 +163,6 @@ struct SwCursorMoveState SwCursorMoveState( CursorMoveState eSt = MV_NONE ) : m_pFill( nullptr ), - m_p2Lines( nullptr ), m_pSpecialPos( nullptr ), m_eState( eSt ), m_nCursorBidiLevel( 0 ), @@ -186,7 +185,6 @@ struct SwCursorMoveState {} SwCursorMoveState( SwFillCursorPos *pInitFill ) : m_pFill( pInitFill ), - m_p2Lines( nullptr ), m_pSpecialPos( nullptr ), m_eState( MV_SETONLYTEXT ), m_nCursorBidiLevel( 0 ), |