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

convert Link<> to typed

Change-Id: Iccdfc807447c18c2929cc93bcb11d32b3659d666
Reviewed-on: https://gerrit.libreoffice.org/18774Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 32cbfd1a
...@@ -44,7 +44,7 @@ enum SvParserState ...@@ -44,7 +44,7 @@ enum SvParserState
class SVT_DLLPUBLIC SvParser : public SvRefBase class SVT_DLLPUBLIC SvParser : public SvRefBase
{ {
DECL_LINK( NewDataRead, void* ); DECL_LINK_TYPED( NewDataRead, LinkParamNone*, void );
protected: protected:
SvStream& rInput; SvStream& rInput;
...@@ -134,7 +134,7 @@ public: ...@@ -134,7 +134,7 @@ public:
inline bool IsParserWorking() const { return SVPAR_WORKING == eState; } inline bool IsParserWorking() const { return SVPAR_WORKING == eState; }
Link<> GetAsynchCallLink() const Link<LinkParamNone*,void> GetAsynchCallLink() const
{ return LINK( const_cast<SvParser*>(this), SvParser, NewDataRead ); } { return LINK( const_cast<SvParser*>(this), SvParser, NewDataRead ); }
// for asynchronous reading from the SvStream // for asynchronous reading from the SvStream
......
...@@ -606,7 +606,7 @@ void SvParser::BuildWhichTable( std::vector<sal_uInt16> &rWhichMap, ...@@ -606,7 +606,7 @@ void SvParser::BuildWhichTable( std::vector<sal_uInt16> &rWhichMap,
} }
IMPL_LINK_NOARG( SvParser, NewDataRead ) IMPL_LINK_NOARG_TYPED( SvParser, NewDataRead, LinkParamNone*, void )
{ {
switch( eState ) switch( eState )
{ {
...@@ -640,8 +640,6 @@ IMPL_LINK_NOARG( SvParser, NewDataRead ) ...@@ -640,8 +640,6 @@ IMPL_LINK_NOARG( SvParser, NewDataRead )
ReleaseRef(); // ready otherwise! ReleaseRef(); // ready otherwise!
break; break;
} }
return 0;
} }
/*======================================================================== /*========================================================================
......
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