summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-25 11:20:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-25 15:59:41 +0100
commit9a68ae949c8db91fad463df6d84e4eb89b3be4f7 (patch)
tree1fb3d8eb5cb149a0d55815b935abc9f23a818232 /sfx2/source/appl
parent21d36af1fd3037f1f425dd8303b50b8848d729ce (diff)
SfxObjectShell::DdeExecute and SfxApplication::DdeExecute should return bool
Change-Id: I32749562744572723de8a38811b6bc0bd950b582 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106580 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/appdde.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index 9c2e21dcc426..0746c19755d2 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -297,7 +297,7 @@ bool SfxAppEvent_Impl( const OUString& rCmd, const OUString& rEvent,
relevant SfxApplication subclass in BASIC syntax. Return values can
not be transferred, unfortunately.
*/
-long SfxApplication::DdeExecute( const OUString& rCmd ) // Expressed in our BASIC-Syntax
+bool SfxApplication::DdeExecute( const OUString& rCmd ) // Expressed in our BASIC-Syntax
{
// Print or Open-Event?
if ( !( SfxAppEvent_Impl( rCmd, "Print", ApplicationEvent::Type::Print ) ||
@@ -310,10 +310,10 @@ long SfxApplication::DdeExecute( const OUString& rCmd ) // Expressed in our B
if( !pRet )
{
SbxBase::ResetError();
- return 0;
+ return false;
}
}
- return 1;
+ return true;
}
/* [Description]
@@ -323,7 +323,7 @@ long SfxApplication::DdeExecute( const OUString& rCmd ) // Expressed in our B
The base implementation does nothing and returns 0.
*/
-long SfxObjectShell::DdeExecute( const OUString& rCmd ) // Expressed in our BASIC-Syntax
+bool SfxObjectShell::DdeExecute( const OUString& rCmd ) // Expressed in our BASIC-Syntax
{
#if !HAVE_FEATURE_SCRIPTING
(void) rCmd;
@@ -334,10 +334,10 @@ long SfxObjectShell::DdeExecute( const OUString& rCmd ) // Expressed in our B
if( !pRet )
{
SbxBase::ResetError();
- return 0;
+ return false;
}
#endif
- return 1;
+ return true;
}
/* [Description]
@@ -537,8 +537,7 @@ bool SfxDdeDocTopic_Impl::Put( const DdeData* pData )
bool SfxDdeDocTopic_Impl::Execute( const OUString* pStr )
{
- long nRet = pStr ? pSh->DdeExecute( *pStr ) : 0;
- return 0 != nRet;
+ return pStr && pSh->DdeExecute( *pStr );
}
bool SfxDdeDocTopic_Impl::MakeItem( const OUString& rItem )