diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 12:14:43 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 12:14:43 +0000 |
commit | 528c0474a4e0f052b168a273b79d72404bcb288c (patch) | |
tree | 17e9e7431cdf21ea4c9672afecd0ab68f1f0bd1a /cppu/source | |
parent | 41c7d6739e8ab3aa368e79ba9bc1d5c02fb9232d (diff) |
INTEGRATION: CWS warnings01 (1.30.18); FILE MERGED
2006/04/07 17:50:52 sb 1.30.18.7: RESYNC: (1.32-1.33); FILE MERGED
2006/01/25 17:57:09 sb 1.30.18.6: RESYNC: (1.31-1.32); FILE MERGED
2005/11/21 08:42:39 sb 1.30.18.5: #i53898# Made code warning-free.
2005/09/22 20:45:56 sb 1.30.18.4: RESYNC: (1.30-1.31); FILE MERGED
2005/09/06 10:11:51 sb 1.30.18.3: #i53898# sal::reinterpret_int_cast is not needed.
2005/08/31 13:43:22 sb 1.30.18.2: #i53898# Made code warning-free.
2005/08/29 14:03:54 sb 1.30.18.1: #i53898# Made code warning-free.
Diffstat (limited to 'cppu/source')
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index 4631969bcdb6..185bb4b4ede8 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -4,9 +4,9 @@ * * $RCSfile: lbenv.cxx,v $ * - * $Revision: 1.33 $ + * $Revision: 1.34 $ * - * last change: $Author: rt $ $Date: 2006-03-06 10:16:59 $ + * last change: $Author: hr $ $Date: 2006-06-19 13:14:43 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -614,7 +614,7 @@ static void SAL_CALL defenv_harden( } //------------------------------------------------------------------------------ -static void SAL_CALL defenv_dispose( uno_Environment * pEnv ) +static void SAL_CALL defenv_dispose( uno_Environment * ) { } } @@ -770,14 +770,16 @@ extern "C" void SAL_CALL uno_dumpEnvironment( { buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("; proxy free=0x") ); - buf.append( (sal_Int64)rIEntry.fpFreeProxy, 16 ); + buf.append( + reinterpret_cast< sal_IntPtr >(rIEntry.fpFreeProxy), 16 ); } else { buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("; original") ); } buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("; ptr=0x") ); - buf.append( (sal_Int64) rIEntry.pInterface, 16 ); + buf.append( + reinterpret_cast< sal_IntPtr >(rIEntry.pInterface), 16 ); if (pOEntry->find( rIEntry.pInterface, nPos + 1 ) < 0) { @@ -951,7 +953,8 @@ inline void EnvironmentsData::getEnvironment( *ppEnv = 0; } - OUString aKey( OUString::valueOf( (sal_Int64)pContext ) ); + OUString aKey( + OUString::valueOf( reinterpret_cast< sal_IntPtr >(pContext) ) ); aKey += rEnvTypeName; // try to find registered mapping @@ -970,7 +973,8 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv ) OSL_ENSURE( ppEnv, "### null ptr!" ); uno_Environment * pEnv = *ppEnv; - OUString aKey( OUString::valueOf( (sal_Int64)pEnv->pContext ) ); + OUString aKey( + OUString::valueOf( reinterpret_cast< sal_IntPtr >(pEnv->pContext) ) ); aKey += pEnv->pTypeName; // try to find registered environment @@ -1088,7 +1092,7 @@ static uno_Environment * initDefaultEnvironment( OUString aSymbolName( RTL_CONSTASCII_USTRINGPARAM(UNO_INIT_ENVIRONMENT) ); uno_initEnvironmentFunc fpInit = (uno_initEnvironmentFunc) - ::osl_getSymbol( hMod, aSymbolName.pData ); + ::osl_getFunctionSymbol( hMod, aSymbolName.pData ); if (fpInit) { pEnv = reinterpret_cast< uno_Environment * >( @@ -1135,7 +1139,8 @@ void SAL_CALL uno_getEnvironment( rData.getEnvironment( ppEnv, rEnvTypeName, pContext ); if (! *ppEnv) { - if (*ppEnv = initDefaultEnvironment( rEnvTypeName, pContext )) + *ppEnv = initDefaultEnvironment( rEnvTypeName, pContext ); + if (*ppEnv) { // register new environment: rData.registerEnvironment( ppEnv ); |