Kaydet (Commit) 7edf29b3 authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: I1cd4adb0b9ae24298a3978fdbfa0091e76f65044
üst a7244509
...@@ -1045,7 +1045,7 @@ IMPL_LINK_NOARG_TYPED(SearchTabPage_Impl, ClickHdl, Button*, void) ...@@ -1045,7 +1045,7 @@ IMPL_LINK_NOARG_TYPED(SearchTabPage_Impl, ClickHdl, Button*, void)
SearchHdl(NULL); SearchHdl(NULL);
} }
IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl) IMPL_LINK_NOARG_TYPED(SearchTabPage_Impl, SearchHdl, LinkParamNone*, void)
{ {
OUString aSearchText = comphelper::string::strip(m_pSearchED->GetText(), ' '); OUString aSearchText = comphelper::string::strip(m_pSearchED->GetText(), ' ');
if ( !aSearchText.isEmpty() ) if ( !aSearchText.isEmpty() )
...@@ -1081,7 +1081,6 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl) ...@@ -1081,7 +1081,6 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl)
aBox->Execute(); aBox->Execute();
} }
} }
return 0;
} }
IMPL_LINK_NOARG_TYPED(SearchTabPage_Impl, OpenHdl, Button*, void) IMPL_LINK_NOARG_TYPED(SearchTabPage_Impl, OpenHdl, Button*, void)
......
...@@ -170,7 +170,7 @@ public: ...@@ -170,7 +170,7 @@ public:
class SearchBox_Impl : public ComboBox class SearchBox_Impl : public ComboBox
{ {
private: private:
Link<> aSearchLink; Link<LinkParamNone*,void> aSearchLink;
public: public:
SearchBox_Impl(vcl::Window* pParent, WinBits nStyle) SearchBox_Impl(vcl::Window* pParent, WinBits nStyle)
...@@ -182,7 +182,7 @@ public: ...@@ -182,7 +182,7 @@ public:
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
virtual void Select() SAL_OVERRIDE; virtual void Select() SAL_OVERRIDE;
inline void SetSearchLink( const Link<>& rLink ) { aSearchLink = rLink; } inline void SetSearchLink( const Link<LinkParamNone*,void>& rLink ) { aSearchLink = rLink; }
}; };
class SearchResultsBox_Impl : public ListBox class SearchResultsBox_Impl : public ListBox
...@@ -214,7 +214,7 @@ private: ...@@ -214,7 +214,7 @@ private:
void ClearSearchResults(); void ClearSearchResults();
void RememberSearchText( const OUString& rSearchText ); void RememberSearchText( const OUString& rSearchText );
DECL_LINK(SearchHdl, void *); DECL_LINK_TYPED(SearchHdl, LinkParamNone*, void);
DECL_LINK_TYPED(ClickHdl, Button*, void); DECL_LINK_TYPED(ClickHdl, Button*, void);
DECL_LINK_TYPED(OpenHdl, Button*, void); DECL_LINK_TYPED(OpenHdl, Button*, void);
DECL_LINK(ModifyHdl, void *); DECL_LINK(ModifyHdl, void *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment