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 /svx | |
parent | 2ec22477739d2c075e7d9997c3e90cb1a512f63f (diff) |
convert Link<> to typed
Change-Id: I42eba6c9b6295d94dddc49942d47d59f474bfd28
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx | 8 | ||||
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx index 2bd53c1bb156..3c2b6ffb8796 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx @@ -289,11 +289,11 @@ void DictionaryList::sortByColumn( sal_uInt16 nSortColumnIndex, bool bSortAtoZ ) } -IMPL_LINK( DictionaryList, CompareHdl, SvSortData*, pData ) +IMPL_LINK_TYPED( DictionaryList, CompareHdl, const SvSortData&, rData, sal_Int32 ) { - SvTreeListEntry* pLeft = const_cast<SvTreeListEntry*>(pData->pLeft); - SvTreeListEntry* pRight = const_cast<SvTreeListEntry*>(pData->pRight); - return (long) ColumnCompare(pLeft,pRight); + SvTreeListEntry* pLeft = const_cast<SvTreeListEntry*>(rData.pLeft); + SvTreeListEntry* pRight = const_cast<SvTreeListEntry*>(rData.pRight); + return ColumnCompare(pLeft,pRight); } sal_Int32 DictionaryList::ColumnCompare( SvTreeListEntry* pLeft, SvTreeListEntry* pRight ) diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx index 04bdfb77aeb4..265542b409e8 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx @@ -89,7 +89,7 @@ private: OUString getPropertyTypeName( sal_Int16 nConversionPropertyType /*linguistic2::ConversionPropertyType*/ ) const; OUString makeTabString( const DictionaryEntry& rEntry ) const; - DECL_LINK( CompareHdl, SvSortData* ); + DECL_LINK_TYPED( CompareHdl, const SvSortData&, sal_Int32 ); sal_Int32 ColumnCompare( SvTreeListEntry* pLeft, SvTreeListEntry* pRight ); SvLBoxItem* getItemAtColumn( SvTreeListEntry* pEntry, sal_uInt16 nColumn ) const; |