diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-07 12:31:57 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-07 17:54:34 +0100 |
commit | 4150627176623ca9abcf2317bbd178bc23914c7c (patch) | |
tree | e28a9cddf0fc047052ae0d38cc92c2422f07dd00 /vcl | |
parent | cb52b112c0d44d7a6849f773fd1ee4e863ab91da (diff) |
Use ref for SvTreeList's parent SvListView
Follow-up of commit 74816dd665fb2980823e01f81446147fe7fe6688
Change-Id: I246df80586c8fc60efc68b5deeb865cbfcd0da13
Reviewed-on: https://gerrit.libreoffice.org/64762
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/treelist.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx index 5637b8ba2529..255b5225dc02 100644 --- a/vcl/source/treelist/treelist.cxx +++ b/vcl/source/treelist/treelist.cxx @@ -58,8 +58,8 @@ struct SvListView::Impl }; -SvTreeList::SvTreeList(SvListView* listView) : - mpOwnerListView(listView), +SvTreeList::SvTreeList(SvListView& listView) : + mrOwnerListView(listView), mbEnableInvalidate(true) { nEntryCount = 0; @@ -79,7 +79,7 @@ void SvTreeList::Broadcast( sal_uLong nPos ) { - mpOwnerListView->ModelNotification(nActionId, pEntry1, pEntry2, nPos); + mrOwnerListView.ModelNotification(nActionId, pEntry1, pEntry2, nPos); } // an entry is visible if all parents are expanded @@ -1075,7 +1075,7 @@ std::pair<SvTreeListEntries::iterator, SvTreeListEntries::iterator> SvListView::SvListView() : m_pImpl(new Impl(*this)) { - pModel.reset(new SvTreeList(this)); + pModel.reset(new SvTreeList(*this)); m_pImpl->InitTable(); } |