bool improvements

Change-Id: Ic29ea184cb40f6f49313ac2ff1abb4a37246d5bd
This commit is contained in:
Stephan Bergmann
2014-01-28 20:00:06 +01:00
parent 6f607b5385
commit 48fc43550a
3 changed files with 5 additions and 5 deletions

View File

@@ -1471,12 +1471,12 @@ struct hashIntrospectionAccessCache_Impl
{
if( rObj1.xPropInfo != rObj2.xPropInfo
|| rObj1.xImplClass != rObj2.xImplClass )
return sal_False;
return false;
sal_Int32 nCount1 = rObj1.aIdlClasses.getLength();
sal_Int32 nCount2 = rObj2.aIdlClasses.getLength();
if( nCount1 != nCount2 )
return sal_False;
return false;
const Reference<XIdlClass>* pRefs1 = rObj1.aIdlClasses.getConstArray();
const Reference<XIdlClass>* pRefs2 = rObj2.aIdlClasses.getConstArray();
@@ -1525,7 +1525,7 @@ struct TypeProviderAccessCache_Impl
const hashTypeProviderKey_Impl & rObj2 ) const
{
if( rObj1.xPropInfo != rObj2.xPropInfo )
return sal_False;
return false;
bool bEqual = false;
sal_Int32 nLen1 = rObj1.maImpIdSeq.getLength();

View File

@@ -855,7 +855,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId)
case JFW_E_RUNNING_JVM:
{
//This service should make sure that we do not start java twice.
OSL_ASSERT(0);
OSL_ASSERT(false);
break;
}
case JFW_E_NEED_RESTART:

View File

@@ -160,7 +160,7 @@ UnoInterfaceReference FactoryImpl::binuno_queryInterface(
m_uno2cpp.get() );
uno_any_destruct( exc, 0 );
::cppu::throwException( cpp_exc );
OSL_ASSERT( 0 ); // way of no return
OSL_ASSERT( false ); // way of no return
return UnoInterfaceReference(); // for dummy
}
}