summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-17 12:48:19 +0200
committerNoel Grandin <noel@peralex.com>2015-09-17 14:41:57 +0200
commit8315c4fa43b2826bf59005c5f4d5e05cafdad626 (patch)
tree5836eab2b2a7d206da20f29e0e18f27581e44a8e /cui
parent50b1184600abf47ac56b539489c166e63b7b544e (diff)
convert Link<> to typed
Change-Id: Iaf8093a143e99aca391a107b3d677882f94ea820
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx7
-rw-r--r--cui/source/inc/hangulhanjadlg.hxx6
2 files changed, 6 insertions, 7 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 3892484a9836..6bc9107fb2df 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -500,11 +500,11 @@ namespace svx
m_aListBox->SelectEntryPos( nPos );
}
m_bInSelectionUpdate = false;
- m_aSelectLink.Call( this );
+ m_aSelectLink.Call( *this );
return 0L;
}
- void SuggestionDisplay::SetSelectHdl( const Link<>& rLink )
+ void SuggestionDisplay::SetSelectHdl( const Link<SuggestionDisplay&,void>& rLink )
{
m_aSelectLink = rLink;
}
@@ -712,11 +712,10 @@ namespace svx
}
- IMPL_LINK_NOARG( HangulHanjaConversionDialog, OnSuggestionSelected )
+ IMPL_LINK_NOARG_TYPED( HangulHanjaConversionDialog, OnSuggestionSelected, SuggestionDisplay&, void )
{
m_pWordInput->SetText( m_pSuggestions->GetSelectEntry() );
OnSuggestionModified( NULL );
- return 0L;
}
diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx
index 711a03763590..8210431f3462 100644
--- a/cui/source/inc/hangulhanjadlg.hxx
+++ b/cui/source/inc/hangulhanjadlg.hxx
@@ -58,7 +58,7 @@ namespace svx
void DisplayListBox( bool bDisplayListBox );
- void SetSelectHdl( const Link<>& rLink );
+ void SetSelectHdl( const Link<SuggestionDisplay&,void>& rLink );
void Clear();
void InsertEntry( const OUString& rStr );
@@ -94,7 +94,7 @@ namespace svx
VclPtr<SuggestionSet> m_aValueSet;
VclPtr<ListBox> m_aListBox;
- Link<> m_aSelectLink;
+ Link<SuggestionDisplay&,void> m_aSelectLink;
bool m_bInSelectionUpdate;
};
@@ -183,7 +183,7 @@ namespace svx
private:
DECL_LINK_TYPED( OnOption, Button*, void );
DECL_LINK( OnSuggestionModified, void* );
- DECL_LINK( OnSuggestionSelected, void* );
+ DECL_LINK_TYPED( OnSuggestionSelected, SuggestionDisplay&, void );
DECL_LINK_TYPED( OnConversionDirectionClicked, Button*, void );
DECL_LINK_TYPED( ClickByCharacterHdl, Button*, void );