make SvListView::IsSelected take const arg
Change-Id: I1e6d2ed5b092741499505bdfd65c6a583495204c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91594 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -281,7 +281,7 @@ public:
|
||||
|
||||
bool IsExpanded( SvTreeListEntry* pEntry ) const;
|
||||
bool IsAllExpanded( SvTreeListEntry* pEntry) const;
|
||||
bool IsSelected( SvTreeListEntry* pEntry ) const;
|
||||
bool IsSelected(const SvTreeListEntry* pEntry) const;
|
||||
void SetEntryFocus( SvTreeListEntry* pEntry, bool bFocus );
|
||||
const SvViewDataEntry* GetViewData( const SvTreeListEntry* pEntry ) const;
|
||||
SvViewDataEntry* GetViewData( SvTreeListEntry* pEntry );
|
||||
|
||||
@@ -1355,10 +1355,10 @@ bool SvListView::IsAllExpanded( SvTreeListEntry* pEntry ) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SvListView::IsSelected( SvTreeListEntry* pEntry ) const
|
||||
bool SvListView::IsSelected(const SvTreeListEntry* pEntry) const
|
||||
{
|
||||
DBG_ASSERT(pEntry,"IsExpanded:No Entry");
|
||||
SvDataTable::const_iterator itr = m_pImpl->m_DataTable.find(pEntry);
|
||||
SvDataTable::const_iterator itr = m_pImpl->m_DataTable.find(const_cast<SvTreeListEntry*>(pEntry));
|
||||
if (itr == m_pImpl->m_DataTable.end())
|
||||
return false;
|
||||
return itr->second->IsSelected();
|
||||
|
||||
Reference in New Issue
Block a user