diff options
-rw-r--r-- | include/vcl/treelist.hxx | 4 | ||||
-rw-r--r-- | vcl/source/treelist/treelist.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/treelist.hxx b/include/vcl/treelist.hxx index e4e2f21c0b3e..0f2a1f45efa9 100644 --- a/include/vcl/treelist.hxx +++ b/include/vcl/treelist.hxx @@ -67,7 +67,7 @@ class VCL_DLLPUBLIC SvTreeList final { friend class SvListView; - SvListView* const mpOwnerListView; + SvListView& mrOwnerListView; sal_uLong nEntryCount; Link<SvTreeListEntry*, SvTreeListEntry*> aCloneLink; @@ -131,7 +131,7 @@ class VCL_DLLPUBLIC SvTreeList final public: SvTreeList() = delete; - SvTreeList(SvListView*); + SvTreeList(SvListView&); ~SvTreeList(); void Broadcast( 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(); } |