diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/impldde.cxx | 13 | ||||
-rw-r--r-- | sfx2/source/appl/impldde.hxx | 1 |
2 files changed, 1 insertions, 13 deletions
diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx index 19192703ca1b..e7a2732a9852 100644 --- a/sfx2/source/appl/impldde.cxx +++ b/sfx2/source/appl/impldde.cxx @@ -47,9 +47,6 @@ #include <unotools/securityoptions.hxx> -#define DDELINK_ERROR_APP 1 -#define DDELINK_ERROR_DATA 2 - using namespace ::com::sun::star::uno; namespace sfx2 @@ -121,7 +118,7 @@ IMPL_LINK_NOARG_TYPED( SvDDELinkEditDialog, EditHdl_Impl, Edit&, void) } SvDDEObject::SvDDEObject() - : pConnection( nullptr ), pLink( nullptr ), pRequest( nullptr ), pGetData( nullptr ), nError( 0 ) + : pConnection( nullptr ), pLink( nullptr ), pRequest( nullptr ), pGetData( nullptr ) { SetUpdateTimeout( 100 ); bWaitForData = sal_False; @@ -148,8 +145,6 @@ bool SvDDEObject::GetData( css::uno::Any & rData /*out param*/, delete pConnection; pConnection = new DdeConnection( sServer, sTopic ); - if( pConnection->GetError() ) - nError = DDELINK_ERROR_APP; } if( bWaitForData ) // we are in an rekursive loop, get out again @@ -171,9 +166,6 @@ bool SvDDEObject::GetData( css::uno::Any & rData /*out param*/, aReq.Execute(); } while( aReq.GetError() && ImplHasOtherFormat( aReq ) ); - if( pConnection->GetError() ) - nError = DDELINK_ERROR_DATA; - bWaitForData = sal_False; } else @@ -235,11 +227,8 @@ bool SvDDEObject::Connect( SvBaseLink * pSvLink ) if( bSysTopic ) { // if the system topic works then the server is up but just doesn't know the original topic - nError = DDELINK_ERROR_DATA; return false; } - - nError = DDELINK_ERROR_APP; } if( SfxLinkUpdateMode::ALWAYS == nLinkType && !pLink && !pConnection->GetError() ) diff --git a/sfx2/source/appl/impldde.hxx b/sfx2/source/appl/impldde.hxx index 7e67adb8b0a5..d3ea6781cb0f 100644 --- a/sfx2/source/appl/impldde.hxx +++ b/sfx2/source/appl/impldde.hxx @@ -41,7 +41,6 @@ class SvDDEObject : public SvLinkSource css::uno::Any * pGetData; sal_uInt8 bWaitForData : 1; // waiting for data? - sal_uInt8 nError : 7; // Error code for dialogue static bool ImplHasOtherFormat( DdeTransaction& ); |