summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/servobj.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 12:57:33 +0200
committerNoel Grandin <noel@peralex.com>2014-03-18 11:26:05 +0200
commit96ef76c1b75332e4b8379276e396ea623153644d (patch)
treee87a6a4f7970421f777baedf83315c22579581c8 /sc/source/ui/docshell/servobj.cxx
parente67d675d1e6410a95c3ea0765c12d96c3a1db512 (diff)
sfx2: sal_Bool->bool
Change-Id: I733cd63e321bdc775739228c269fa66ff7780780
Diffstat (limited to 'sc/source/ui/docshell/servobj.cxx')
-rw-r--r--sc/source/ui/docshell/servobj.cxx14
1 files changed, 7 insertions, 7 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 )