diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-15 13:58:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-15 13:58:41 +0100 |
commit | c72a7a63833f840fdb334d91fc81a77c17f128a6 (patch) | |
tree | dddcb18a9a02da4680aa6cfc68af70559cfcf765 /sfx2/source/appl/appdde.cxx | |
parent | 7e4823772ceb00d18301497fdad1a5b2678872bf (diff) |
DdeGetData should apparently return bool
Change-Id: I603198b9fd2c6fea1c9ec7de09b23c61fe9d603c
Diffstat (limited to 'sfx2/source/appl/appdde.cxx')
-rw-r--r-- | sfx2/source/appl/appdde.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index f3efec169948..9785e369b253 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -370,13 +370,13 @@ long SfxObjectShell::DdeExecute( const OUString& rCmd ) // Expressed in our B This method can be overloaded by application developers, to receive DDE-data-requests directed to their SfxApplication subclass. - The base implementation provides no data and returns 0. + The base implementation provides no data and returns false. */ -long SfxObjectShell::DdeGetData( const OUString&, // the Item to be addressed +bool SfxObjectShell::DdeGetData( const OUString&, // the Item to be addressed const OUString&, // in: Format ::com::sun::star::uno::Any& )// out: requested data { - return 0; + return false; } //-------------------------------------------------------------------- @@ -447,13 +447,13 @@ long SfxViewFrame::DdeExecute( const OUString& rCmd ) // Expressed in our BASI This method can be overloaded by application developers, to receive DDE-data-requests directed to their SfxApplication subclass. - The base implementation provides no data and returns 0. + The base implementation provides no data and returns false. */ -long SfxViewFrame::DdeGetData( const OUString&, // the Item to be addressed +bool SfxViewFrame::DdeGetData( const OUString&, // the Item to be addressed const OUString&, // in: Format ::com::sun::star::uno::Any& )// out: requested data { - return 0; + return false; } /* [Description] @@ -594,7 +594,7 @@ DdeData* SfxDdeDocTopic_Impl::Get( sal_uIntPtr nFormat ) { OUString sMimeType( SotExchange::GetFormatMimeType( nFormat )); ::com::sun::star::uno::Any aValue; - long nRet = pSh->DdeGetData( GetCurItem(), sMimeType, aValue ); + bool nRet = pSh->DdeGetData( GetCurItem(), sMimeType, aValue ); if( nRet && aValue.hasValue() && ( aValue >>= aSeq ) ) { aData = DdeData( aSeq.getConstArray(), aSeq.getLength(), nFormat ); |