diff options
author | August Sodora <augsod@gmail.com> | 2011-12-09 00:15:26 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-09 00:15:26 -0500 |
commit | 7ffca8ed2ed7dda9d74edb498ec74620e9489c7a (patch) | |
tree | acb1d0a62d926c04e60655034361ca66c4d35c92 /basctl | |
parent | 5a61ac273bff26d7ddbbd4fa0ea8099f486168f3 (diff) |
sal_Bool to bool
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/bastypes.cxx | 20 | ||||
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 12 |
2 files changed, 15 insertions, 17 deletions
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index 21dfce98eb6d..ca6b97a42f40 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -756,7 +756,7 @@ LibInfoItem* LibInfos::GetInfo( const LibInfoKey& rKey ) return pItem; } -sal_Bool QueryDel( const String& rName, const ResId& rId, Window* pParent ) +bool QueryDel( const String& rName, const ResId& rId, Window* pParent ) { String aQuery( rId ); String aName( rName ); @@ -764,39 +764,37 @@ sal_Bool QueryDel( const String& rName, const ResId& rId, Window* pParent ) aName.Insert( '\'', 0 ); aQuery.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "XX" ) ), aName ); QueryBox aQueryBox( pParent, WB_YES_NO | WB_DEF_YES, aQuery ); - if ( aQueryBox.Execute() == RET_YES ) - return sal_True; - return sal_False; + return ( aQueryBox.Execute() == RET_YES ); } -sal_Bool QueryDelMacro( const String& rName, Window* pParent ) +bool QueryDelMacro( const String& rName, Window* pParent ) { return QueryDel( rName, IDEResId( RID_STR_QUERYDELMACRO ), pParent ); } -sal_Bool QueryReplaceMacro( const String& rName, Window* pParent ) +bool QueryReplaceMacro( const String& rName, Window* pParent ) { return QueryDel( rName, IDEResId( RID_STR_QUERYREPLACEMACRO ), pParent ); } -sal_Bool QueryDelDialog( const String& rName, Window* pParent ) +bool QueryDelDialog( const String& rName, Window* pParent ) { return QueryDel( rName, IDEResId( RID_STR_QUERYDELDIALOG ), pParent ); } -sal_Bool QueryDelLib( const String& rName, sal_Bool bRef, Window* pParent ) +bool QueryDelLib( const String& rName, bool bRef, Window* pParent ) { return QueryDel( rName, IDEResId( bRef ? RID_STR_QUERYDELLIBREF : RID_STR_QUERYDELLIB ), pParent ); } -sal_Bool QueryDelModule( const String& rName, Window* pParent ) +bool QueryDelModule( const String& rName, Window* pParent ) { return QueryDel( rName, IDEResId( RID_STR_QUERYDELMODULE ), pParent ); } -sal_Bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer, const String& rLibName, String& rPassword, sal_Bool bRepeat, sal_Bool bNewTitle ) +bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer, const String& rLibName, String& rPassword, bool bRepeat, bool bNewTitle ) { - sal_Bool bOK = sal_False; + bool bOK = false; sal_uInt16 nRet = 0; do diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index fb24a2b55f11..f65d1d690c6e 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -274,12 +274,12 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32 String CreateMgrAndLibStr( const String& rMgrName, const String& rLibName ); sal_uLong CalcLineCount( SvStream& rStream ); -sal_Bool QueryReplaceMacro( const String& rName, Window* pParent = 0 ); -sal_Bool QueryDelMacro( const String& rName, Window* pParent = 0 ); -sal_Bool QueryDelDialog( const String& rName, Window* pParent = 0 ); -sal_Bool QueryDelModule( const String& rName, Window* pParent = 0 ); -sal_Bool QueryDelLib( const String& rName, sal_Bool bRef = sal_False, Window* pParent = 0 ); -sal_Bool QueryPassword( const ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >& xLibContainer, const String& rLibName, String& rPassword, sal_Bool bRepeat = sal_False, sal_Bool bNewTitle = sal_False ); +bool QueryReplaceMacro( const String& rName, Window* pParent = 0 ); +bool QueryDelMacro( const String& rName, Window* pParent = 0 ); +bool QueryDelDialog( const String& rName, Window* pParent = 0 ); +bool QueryDelModule( const String& rName, Window* pParent = 0 ); +bool QueryDelLib( const String& rName, bool bRef = sal_False, Window* pParent = 0 ); +bool QueryPassword( const ::com::sun::star::uno::Reference< ::com::sun::star::script::XLibraryContainer >& xLibContainer, const String& rLibName, String& rPassword, bool bRepeat = false, bool bNewTitle = false ); class ModuleInfoHelper { |