bool improvements

Change-Id: Iae9e3840b89b6204fc458226ba0e046d5303dd52
This commit is contained in:
Stephan Bergmann 2014-01-28 19:59:04 +01:00
parent ff4e258ba2
commit aee7aa2b5c
13 changed files with 16 additions and 16 deletions

View File

@ -162,7 +162,7 @@ void OLEStorageImpl::initialize(SvStream *const pStream)
if (!pStream)
return;
mxRootStorage.ref = new SotStorage( pStream, sal_True );
mxRootStorage.ref = new SotStorage( pStream, true );
traverse(mxRootStorage.ref, "");
@ -218,7 +218,7 @@ void OLEStorageImpl::traverse(const SotStorageRef &rStorage, const rtl::OUString
}
else
{
assert(0);
assert(false);
}
}
}
@ -597,7 +597,7 @@ const char *WPXSvInputStreamImpl::subStreamName(const unsigned id)
bool WPXSvInputStreamImpl::existsSubStream(const char *const name)
{
if (!name)
return 0;
return false;
if ((mnLength == 0) || !mxStream.is() || !mxSeekable.is())
return false;

View File

@ -68,7 +68,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -68,7 +68,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -64,7 +64,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -64,7 +64,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -64,7 +64,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -70,7 +70,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -123,7 +123,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -70,7 +70,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -73,12 +73,12 @@ throw (RuntimeException)
}
if ( sFilterName.isEmpty() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -70,7 +70,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -69,7 +69,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}

View File

@ -97,7 +97,7 @@ throw (RuntimeException)
}
if ( !xInputStream.is() )
{
OSL_ASSERT( 0 );
OSL_ASSERT( false );
return sal_False;
}