diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-13 13:24:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-14 07:15:01 +0000 |
commit | adbc556c91ea4afaf3e952aa0a8329e004add63e (patch) | |
tree | b5d03e056f129abcddf6a53934db07ec611ac19f /basic | |
parent | c8f0b37528b69b77dbe8596915e34fd915e34b8d (diff) |
make Link<> instances typed
and remove some unused code
Change-Id: I934824401b5c528b07ad76f753f78440c4492885
Reviewed-on: https://gerrit.libreoffice.org/17703
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/ddectrl.cxx | 3 | ||||
-rw-r--r-- | basic/source/runtime/ddectrl.hxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/basic/source/runtime/ddectrl.cxx b/basic/source/runtime/ddectrl.cxx index 7f7d2a792357..4e965d3c9a84 100644 --- a/basic/source/runtime/ddectrl.cxx +++ b/basic/source/runtime/ddectrl.cxx @@ -67,10 +67,9 @@ SbError SbiDdeControl::GetLastErr( DdeConnection* pConv ) return nDdeErrMap[ 2 * (nErr - DDE_FIRSTERR) + 1 ]; } -IMPL_LINK( SbiDdeControl,Data , DdeData*, pData ) +IMPL_LINK_TYPED( SbiDdeControl, Data, const DdeData*, pData, void ) { aData = OUString::createFromAscii( static_cast<const char*>(static_cast<const void*>(*pData)) ); - return 1; } SbiDdeControl::SbiDdeControl() diff --git a/basic/source/runtime/ddectrl.hxx b/basic/source/runtime/ddectrl.hxx index 0bcfd32d94d5..0eaac2123b51 100644 --- a/basic/source/runtime/ddectrl.hxx +++ b/basic/source/runtime/ddectrl.hxx @@ -29,7 +29,7 @@ class DdeData; class SbiDdeControl { private: - DECL_LINK( Data, DdeData* ); + DECL_LINK_TYPED( Data, const DdeData*, void ); static SbError GetLastErr( DdeConnection* ); size_t GetFreeChannel(); std::vector<DdeConnection*> aConvList; |