diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-04 11:37:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-11 08:18:14 +0200 |
commit | caf8f777e38e75641dcd13461053ba0bfd44500f (patch) | |
tree | 9bd4db6893ec1327e8e276b0088f0d7f69ecbdc4 /svx/source/fmcomp/dbaobjectex.cxx | |
parent | 5e36e2cb7b9a8e52f198525949da257acd87d8c6 (diff) |
svx: sal_Bool->bool
Change-Id: I41f3935a468f38c59bfbce7096bb086daf6190a3
Diffstat (limited to 'svx/source/fmcomp/dbaobjectex.cxx')
-rw-r--r-- | svx/source/fmcomp/dbaobjectex.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/fmcomp/dbaobjectex.cxx b/svx/source/fmcomp/dbaobjectex.cxx index 0687e6aa8bbf..5af2af2e6b21 100644 --- a/svx/source/fmcomp/dbaobjectex.cxx +++ b/svx/source/fmcomp/dbaobjectex.cxx @@ -56,7 +56,7 @@ namespace svx - sal_uInt32 OComponentTransferable::getDescriptorFormatId(sal_Bool _bExtractForm) + sal_uInt32 OComponentTransferable::getDescriptorFormatId(bool _bExtractForm) { static sal_uInt32 s_nReportFormat = (sal_uInt32)-1; static sal_uInt32 s_nFormFormat = (sal_uInt32)-1; @@ -93,14 +93,14 @@ namespace svx sal_Bool OComponentTransferable::GetData( const DataFlavor& _rFlavor ) { const sal_uInt32 nFormatId = SotExchange::GetFormat(_rFlavor); - if ( nFormatId == getDescriptorFormatId(sal_True) || nFormatId == getDescriptorFormatId(sal_False) ) + if ( nFormatId == getDescriptorFormatId(true) || nFormatId == getDescriptorFormatId(false) ) return SetAny( makeAny( m_aDescriptor.createPropertyValueSequence() ), _rFlavor ); return sal_False; } - sal_Bool OComponentTransferable::canExtractComponentDescriptor(const DataFlavorExVector& _rFlavors,sal_Bool _bForm ) + bool OComponentTransferable::canExtractComponentDescriptor(const DataFlavorExVector& _rFlavors, bool _bForm ) { DataFlavorExVector::const_iterator aEnd = _rFlavors.end(); for ( DataFlavorExVector::const_iterator aCheck = _rFlavors.begin(); @@ -109,17 +109,17 @@ namespace svx ) { if ( getDescriptorFormatId(_bForm) == aCheck->mnSotId ) - return sal_True; + return true; } - return sal_False; + return false; } ODataAccessDescriptor OComponentTransferable::extractComponentDescriptor(const TransferableDataHelper& _rData) { - sal_Bool bForm = _rData.HasFormat(getDescriptorFormatId(sal_True)); - if ( bForm || _rData.HasFormat(getDescriptorFormatId(sal_False)) ) + sal_Bool bForm = _rData.HasFormat(getDescriptorFormatId(true)); + if ( bForm || _rData.HasFormat(getDescriptorFormatId(false)) ) { // the object has a real descriptor object (not just the old compatible format) |