Be explicit when using bool as integral value
Change-Id: I0712b56dbcf8508876ed6eca5e0f02d85b35af67
This commit is contained in:
@@ -86,7 +86,7 @@ public:
|
||||
ERRTYPE SetBool( const RSCINST & rInst, bool bValue )
|
||||
{
|
||||
if( bValue )
|
||||
return( pRefClass->SetConst( rInst, nConstId, bValue ) );
|
||||
return( pRefClass->SetConst( rInst, nConstId, sal_Int32(bValue) ) );
|
||||
else
|
||||
return( pRefClass->
|
||||
SetNotConst( rInst, nConstId ) );
|
||||
|
@@ -316,7 +316,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
|
||||
for ( size_t k = 0, n = aTmpList.size(); k < n; ++k )
|
||||
unlink( aTmpList[ k ]->getStr() );
|
||||
|
||||
return bError;
|
||||
return bError ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
void RscExit( sal_uInt32 nExit )
|
||||
|
Reference in New Issue
Block a user