diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 12:54:11 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 12:54:11 +0000 |
commit | b1e48780b29e1e4b4a3dfe7cdcb2dc5d712bb3af (patch) | |
tree | 05fc7d2edca127ea7886e6f447908ac3b87c2ce8 /tools/source/testtoolloader/testtoolloader.cxx | |
parent | 756ff354d205f0eac3830663f00366cf3783eafc (diff) |
INTEGRATION: CWS warnings01 (1.4.8); FILE MERGED
2005/10/27 12:29:19 sb 1.4.8.1: #i53898# Made code warning-free.
Diffstat (limited to 'tools/source/testtoolloader/testtoolloader.cxx')
-rw-r--r-- | tools/source/testtoolloader/testtoolloader.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/source/testtoolloader/testtoolloader.cxx b/tools/source/testtoolloader/testtoolloader.cxx index 4735d0b84585..fc838a4396a1 100644 --- a/tools/source/testtoolloader/testtoolloader.cxx +++ b/tools/source/testtoolloader/testtoolloader.cxx @@ -4,9 +4,9 @@ * * $RCSfile: testtoolloader.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-09 14:39:25 $ + * last change: $Author: hr $ $Date: 2006-06-19 13:54:11 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -132,9 +132,10 @@ void InitTestToolLib() aTestToolModule = osl_loadModule( aModulePath.pData, SAL_LOADMODULE_DEFAULT ); if ( aTestToolModule ) { - void* pInitFunc = osl_getSymbol( aTestToolModule, aFuncName.pData ); + oslGenericFunction pInitFunc = osl_getFunctionSymbol( + aTestToolModule, aFuncName.pData ); if ( pInitFunc ) - (*(pfunc_CreateRemoteControl)pInitFunc)(); + (reinterpret_cast< pfunc_CreateRemoteControl >(pInitFunc))(); else { DBG_ERROR1( "Unable to get Symbol 'CreateRemoteControl' from library %s while loading testtool support.", SVLIBRARY( "sts" ) ); @@ -157,9 +158,10 @@ void DeInitTestToolLib() { OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "DestroyRemoteControl" )); - void* pDeInitFunc = osl_getSymbol( aTestToolModule, aFuncName.pData ); + oslGenericFunction pDeInitFunc = osl_getFunctionSymbol( + aTestToolModule, aFuncName.pData ); if ( pDeInitFunc ) - (*(pfunc_DestroyRemoteControl)pDeInitFunc)(); + (reinterpret_cast< pfunc_DestroyRemoteControl >(pDeInitFunc))(); osl_unloadModule( aTestToolModule ); } |