diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 15:54:21 -0500 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-04 09:58:22 +0000 |
commit | 7c136e7ba27382d5f73454bdf5fa78d0b779e0b7 (patch) | |
tree | 2d200cc67d4442e7f87b119905de9b5c522be619 /sot/source/base/formats.cxx | |
parent | e2f002c044243ddd79eea7837167a72c82b98599 (diff) |
module sot: String, bool and other clean-up
Change-Id: Ibe2bfdf20c500e9fd98c3baef66d36aa79ca4b52
Reviewed-on: https://gerrit.libreoffice.org/4710
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sot/source/base/formats.cxx')
-rw-r--r-- | sot/source/base/formats.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index f4d473f93114..7f7d1016fd1c 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -1256,17 +1256,17 @@ static SotDestinationEntry_Impl const aDestinationArray[] = \ // - new style GetExchange methods - // --------------------------------- -sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, sal_uLong nId ) +bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, sal_uLong nId ) { DataFlavorExVector::iterator aIter( ( (DataFlavorExVector&) rDataFlavorExVector ).begin() ); DataFlavorExVector::iterator aEnd( ( (DataFlavorExVector&) rDataFlavorExVector ).end() ); - sal_Bool bRet = sal_False; + bool bRet = false; while( aIter != aEnd ) { if( nId == (*aIter++).mnSotId ) { - bRet = sal_True; + bRet = true; aIter = aEnd; } } @@ -1276,10 +1276,10 @@ sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, sal_u // ----------------------------------------------------------------------------- -static sal_Bool CheckTransferableContext_Impl( const Reference< XTransferable >* pxTransferable, const SotAction_Impl& rEntry ) +static bool CheckTransferableContext_Impl( const Reference< XTransferable >* pxTransferable, const SotAction_Impl& rEntry ) { DataFlavor aFlavor; - sal_Bool bRet = sal_True; + bool bRet = true; try { @@ -1292,7 +1292,7 @@ static sal_Bool CheckTransferableContext_Impl( const Reference< XTransferable >* { case FILEGRPDSC_ONLY_URL: { - bRet = sal_False; + bRet = false; if( SotExchange::GetFormatDataFlavor( SOT_FORMATSTR_ID_FILECONTENT, aFlavor ) && (*pxTransferable)->isDataFlavorSupported( aFlavor ) && |