diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-14 12:57:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-18 11:26:05 +0200 |
commit | 96ef76c1b75332e4b8379276e396ea623153644d (patch) | |
tree | e87a6a4f7970421f777baedf83315c22579581c8 /sc | |
parent | e67d675d1e6410a95c3ea0765c12d96c3a1db512 (diff) |
sfx2: sal_Bool->bool
Change-Id: I733cd63e321bdc775739228c269fa66ff7780780
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/servobj.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/inc/servobj.hxx | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/docshell/servobj.cxx b/sc/source/ui/docshell/servobj.cxx index 071d2ba6604d..5f1d8d18d8e9 100644 --- a/sc/source/ui/docshell/servobj.cxx +++ b/sc/source/ui/docshell/servobj.cxx @@ -133,9 +133,9 @@ void ScServerObject::EndListeningAll() SfxListener::EndListeningAll(); } -sal_Bool ScServerObject::GetData( +bool ScServerObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/, - const OUString & rMimeType, sal_Bool /* bSynchron */ ) + const OUString & rMimeType, bool /* bSynchron */ ) { if (!pDocSh) return false; @@ -179,22 +179,22 @@ sal_Bool ScServerObject::GetData( rData <<= ::com::sun::star::uno::Sequence< sal_Int8 >( (const sal_Int8*)aByteData.getStr(), aByteData.getLength() + 1 ); - return 1; + return true; } - return 0; + return false; } if( aDdeTextFmt.equalsAscii( "CSV" ) || aDdeTextFmt.equalsAscii( "FCSV" ) ) aObj.SetSeparator( ',' ); aObj.SetExportTextOptions( ScExportTextOptions( ScExportTextOptions::ToSpace, ' ', false ) ); - return aObj.ExportData( rMimeType, rData ) ? 1 : 0; + return aObj.ExportData( rMimeType, rData ); } ScImportExport aObj( pDoc, aRange ); aObj.SetExportTextOptions( ScExportTextOptions( ScExportTextOptions::ToSpace, ' ', false ) ); if( aObj.IsRef() ) - return aObj.ExportData( rMimeType, rData ) ? 1 : 0; - return 0; + return aObj.ExportData( rMimeType, rData ); + return false; } void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) diff --git a/sc/source/ui/inc/servobj.hxx b/sc/source/ui/inc/servobj.hxx index a35bcaf08775..4bf0c5d14254 100644 --- a/sc/source/ui/inc/servobj.hxx +++ b/sc/source/ui/inc/servobj.hxx @@ -54,9 +54,9 @@ public: ScServerObject( ScDocShell* pShell, const OUString& rItem ); virtual ~ScServerObject(); - virtual sal_Bool GetData( ::com::sun::star::uno::Any & rData /*out param*/, + virtual bool GetData( ::com::sun::star::uno::Any & rData /*out param*/, const OUString & rMimeType, - sal_Bool bSynchron = false ); + bool bSynchron = false ); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); void EndListeningAll(); |