diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-14 09:20:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-19 11:10:54 +0200 |
commit | ae451af87d01de3806abf1db474017d002092e4c (patch) | |
tree | 6da5249f4a848d186d2c47a7f8c6ddc9ad0f713c /basic/qa/cppunit | |
parent | acc4c466c35e8ca9ca7ce8bd7b90c505061a0fb3 (diff) |
basic: used typed LINKs
Change-Id: I8770a782e7ff5529e30aee13558711bdd8a4070d
Diffstat (limited to 'basic/qa/cppunit')
-rw-r--r-- | basic/qa/cppunit/basictest.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/qa/cppunit/basictest.hxx b/basic/qa/cppunit/basictest.hxx index 1638e057aed6..f8ac9f8510d6 100644 --- a/basic/qa/cppunit/basictest.hxx +++ b/basic/qa/cppunit/basictest.hxx @@ -125,7 +125,7 @@ class MacroSnippet return !mbError; } - DECL_LINK( BasicErrorHdl, StarBASIC * ); + DECL_LINK_TYPED( BasicErrorHdl, StarBASIC *, bool ); static ErrorDetail GetError() { @@ -140,18 +140,18 @@ class MacroSnippet void ResetError() { - StarBASIC::SetGlobalErrorHdl( Link<>() ); + StarBASIC::SetGlobalErrorHdl( Link<StarBASIC*,bool>() ); mbError = false; } }; -IMPL_LINK( MacroSnippet, BasicErrorHdl, StarBASIC *, /*pBasic*/) +IMPL_LINK_TYPED( MacroSnippet, BasicErrorHdl, StarBASIC *, /*pBasic*/, bool) { fprintf(stderr,"(%d:%d)\n", StarBASIC::GetLine(), StarBASIC::GetCol1()); fprintf(stderr,"Basic error: %s\n", OUStringToOString( StarBASIC::GetErrorText(), RTL_TEXTENCODING_UTF8 ).getStr() ); mbError = true; - return 0; + return false; } #endif |