From f276c0057c81daaa71f4b5e380f045d6b576db42 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jan 2014 11:38:35 +0100 Subject: Be explicit when using bool as integral value Change-Id: I0712b56dbcf8508876ed6eca5e0f02d85b35af67 --- rsc/inc/rscflag.hxx | 2 +- rsc/source/prj/start.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rsc') diff --git a/rsc/inc/rscflag.hxx b/rsc/inc/rscflag.hxx index aefbf0de135a..12a1afb287ec 100644 --- a/rsc/inc/rscflag.hxx +++ b/rsc/inc/rscflag.hxx @@ -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 ) ); diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx index eda8ff5ec297..3ad077f40cd7 100644 --- a/rsc/source/prj/start.cxx +++ b/rsc/source/prj/start.cxx @@ -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 ) -- cgit