diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-31 14:34:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-04 13:08:30 +0200 |
commit | ed7ea6885400d62c84304917493ded4ba376c361 (patch) | |
tree | aff4993be940f764817737f938fa20ff0f0a26fd /sw | |
parent | 2ec22477739d2c075e7d9997c3e90cb1a512f63f (diff) |
convert Link<> to typed
Change-Id: I42eba6c9b6295d94dddc49942d47d59f474bfd28
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/inc/dbtree.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index 9aaf094b3846..0defde03f0a5 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -407,14 +407,14 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent) } } -IMPL_LINK( SwDBTreeList, DBCompare, SvSortData*, pData ) +IMPL_LINK_TYPED( SwDBTreeList, DBCompare, const SvSortData&, rData, sal_Int32 ) { - SvTreeListEntry* pRight = const_cast<SvTreeListEntry*>(pData->pRight); + SvTreeListEntry* pRight = const_cast<SvTreeListEntry*>(rData.pRight); if (GetParent(pRight) && GetParent(GetParent(pRight))) return 1; // don't sort column names - return DefaultCompare(pData); // otherwise call base class + return DefaultCompare(rData); // otherwise call base class } OUString SwDBTreeList::GetDBName(OUString& rTableName, OUString& rColumnName, sal_Bool* pbIsTable) diff --git a/sw/source/uibase/inc/dbtree.hxx b/sw/source/uibase/inc/dbtree.hxx index dfb793042402..46a02241d666 100644 --- a/sw/source/uibase/inc/dbtree.hxx +++ b/sw/source/uibase/inc/dbtree.hxx @@ -41,7 +41,7 @@ class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox SwDBTreeList_Impl* pImpl; - DECL_DLLPRIVATE_LINK( DBCompare, SvSortData* ); + DECL_DLLPRIVATE_LINK_TYPED( DBCompare, const SvSortData&, sal_Int32 ); SAL_DLLPRIVATE void InitTreeList(); SAL_DLLPRIVATE virtual void RequestingChildren( SvTreeListEntry* pParent ) SAL_OVERRIDE; |