summaryrefslogtreecommitdiff
path: root/stoc/source/corereflection/crefl.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:00:43 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:00:43 +0000
commitce1acd126acfbff8d6439ddf96bbdb0b5b23dc47 (patch)
tree3d4fa18c5528b28bf23391ec6c78c67c48706593 /stoc/source/corereflection/crefl.cxx
parent7746611205734b095d0679b3e99e253f499503f1 (diff)
INTEGRATION: CWS warnings01 (1.10.52); FILE MERGED
2006/02/27 14:10:52 sb 1.10.52.4: #i53898# Made code waring-free. 2005/10/31 14:38:05 sb 1.10.52.3: #i53898# Made code warning-free. 2005/09/22 19:45:59 sb 1.10.52.2: RESYNC: (1.10-1.11); FILE MERGED 2005/09/19 15:23:44 sb 1.10.52.1: #i53898# Made code warning-free.
Diffstat (limited to 'stoc/source/corereflection/crefl.cxx')
-rw-r--r--stoc/source/corereflection/crefl.cxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index a9ca78e1cd1a..0e8d9534afd8 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: crefl.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 07:52:44 $
+ * last change: $Author: hr $ $Date: 2006-06-20 00:00:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -277,21 +277,16 @@ inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass(
case typelib_TypeClass_TYPE:
return new IdlClassImpl( this, pTypeDescr->pTypeName, pTypeDescr->eTypeClass, pTypeDescr );
-#if OSL_DEBUG_LEVEL > 1
- case typelib_TypeClass_INTERFACE_METHOD:
- case typelib_TypeClass_INTERFACE_ATTRIBUTE:
- case typelib_TypeClass_SERVICE:
- case typelib_TypeClass_MODULE:
- case typelib_TypeClass_UNKNOWN:
- case typelib_TypeClass_TYPEDEF:
+
default:
+#if OSL_DEBUG_LEVEL > 1
OSL_TRACE( "### corereflection type unsupported: " );
OString aName( OUStringToOString( pTypeDescr->pTypeName, RTL_TEXTENCODING_ASCII_US ) );
OSL_TRACE( aName.getStr() );
OSL_TRACE( "\n" );
#endif
+ return Reference< XIdlClass >();
}
- return Reference< XIdlClass >();
}
//__________________________________________________________________________________________________
Reference< XIdlClass > IdlReflectionServiceImpl::forName( const OUString & rTypeName )
@@ -419,7 +414,6 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptio
throw RuntimeException(
OUString( RTL_CONSTASCII_USTRINGPARAM("IdlReflectionServiceImpl::forType() failed!") ),
(XWeak *)(OWeakObject *)this );
- return Reference< XIdlClass >(); // dummy
}
//__________________________________________________________________________________________________
@@ -518,7 +512,7 @@ sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
//==================================================================================================
void SAL_CALL component_getImplementationEnvironment(
- const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
+ const sal_Char ** ppEnvTypeName, uno_Environment ** )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
@@ -544,6 +538,8 @@ sal_Bool SAL_CALL component_writeInfo(
#if OSL_DEBUG_LEVEL > 0
OString cstr( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) );
OSL_ENSURE( 0, cstr.getStr() );
+#else
+ (void) exc; // unused
#endif
}
}