diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 07:32:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 07:33:17 +0200 |
commit | 3cda5ffdda64eff9282450816334d18f7aa015bd (patch) | |
tree | 669791982c9d9b3e4365bb01167324c192060b74 | |
parent | use rtl::Reference in SwChartDataSequence (diff) | |
download | core-3cda5ffdda64eff9282450816334d18f7aa015bd.tar.gz core-3cda5ffdda64eff9282450816334d18f7aa015bd.zip |
use tools::SvRef in ScSpellDialogChildWindow
since it is a ref-counted object
Change-Id: I14a2c666a8fe8ab0ccb55f91f7573e7d3c8caf47
-rw-r--r-- | sc/source/ui/inc/spelldialog.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/spelldialog.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/inc/spelldialog.hxx b/sc/source/ui/inc/spelldialog.hxx index 6e735b21f4d7..af7c7bcb5ff6 100644 --- a/sc/source/ui/inc/spelldialog.hxx +++ b/sc/source/ui/inc/spelldialog.hxx @@ -75,13 +75,13 @@ private: typedef ::std::unique_ptr< ScConversionEngineBase > ScConvEnginePtr; typedef ::std::unique_ptr< ScDocument > ScDocumentPtr; typedef ::std::unique_ptr< ScSelectionState > ScSelectionStatePtr; - typedef ::std::unique_ptr< ScRangeList > ScRangeListPtr; ScConvEnginePtr mxEngine; ScDocumentPtr mxUndoDoc; ScDocumentPtr mxRedoDoc; ScSelectionStatePtr mxOldSel; /// For cursor position in selection - ScRangeListPtr mxOldRangeList; /// Original selection range for comparison. + tools::SvRef< ScRangeList > + mxOldRangeList; /// Original selection range for comparison. ScTabViewShell* mpViewShell; ScViewData* mpViewData; ScDocShell* mpDocShell; diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx index db43544df45e..0d4dc36c7ec5 100644 --- a/sc/source/ui/view/spelldialog.cxx +++ b/sc/source/ui/view/spelldialog.cxx @@ -146,7 +146,7 @@ void ScSpellDialogChildWindow::Reset() mxUndoDoc.reset(); mxRedoDoc.reset(); mxOldSel.reset(); - mxOldRangeList.reset(); + mxOldRangeList.Clear(); mpViewShell = nullptr; mpViewData = nullptr; mpDocShell = nullptr; @@ -180,7 +180,7 @@ void ScSpellDialogChildWindow::Init() ScMarkData& rMarkData = mpViewData->GetMarkData(); - mxOldRangeList.reset(new ScRangeList); + mxOldRangeList = new ScRangeList; rMarkData.FillRangeListWithMarks(mxOldRangeList.get(), true); rMarkData.MarkToMulti(); |