Use bool instead of a sal_uInt8 bit
Change-Id: Id918fd609afaa4fcfcd90f60baac165d7d6280d9
This commit is contained in:
@@ -121,7 +121,7 @@ SvDDEObject::SvDDEObject()
|
||||
: pConnection( nullptr ), pLink( nullptr ), pRequest( nullptr ), pGetData( nullptr )
|
||||
{
|
||||
SetUpdateTimeout( 100 );
|
||||
bWaitForData = sal_False;
|
||||
bWaitForData = false;
|
||||
}
|
||||
|
||||
SvDDEObject::~SvDDEObject()
|
||||
@@ -151,7 +151,7 @@ bool SvDDEObject::GetData( css::uno::Any & rData /*out param*/,
|
||||
return false;
|
||||
|
||||
// Lock against Reentrance
|
||||
bWaitForData = sal_True;
|
||||
bWaitForData = true;
|
||||
|
||||
// if you want to print, we'll wait until the data is available
|
||||
if( bSynchron )
|
||||
@@ -166,7 +166,7 @@ bool SvDDEObject::GetData( css::uno::Any & rData /*out param*/,
|
||||
aReq.Execute();
|
||||
} while( aReq.GetError() && ImplHasOtherFormat( aReq ) );
|
||||
|
||||
bWaitForData = sal_False;
|
||||
bWaitForData = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -341,7 +341,7 @@ IMPL_LINK_TYPED( SvDDEObject, ImplGetDDEData, const DdeData*, pData, void )
|
||||
aVal <<= aSeq;
|
||||
DataChanged( SotExchange::GetFormatMimeType(
|
||||
pData->GetFormat() ), aVal );
|
||||
bWaitForData = sal_False;
|
||||
bWaitForData = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -365,13 +365,13 @@ IMPL_LINK_TYPED( SvDDEObject, ImplDoneDDEData, bool, bValid, void )
|
||||
}
|
||||
else if( pReq == pRequest )
|
||||
{
|
||||
bWaitForData = sal_False;
|
||||
bWaitForData = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
// End waiting
|
||||
bWaitForData = sal_False;
|
||||
bWaitForData = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ class SvDDEObject : public SvLinkSource
|
||||
DdeRequest* pRequest;
|
||||
css::uno::Any * pGetData;
|
||||
|
||||
sal_uInt8 bWaitForData : 1; // waiting for data?
|
||||
bool bWaitForData; // waiting for data?
|
||||
|
||||
|
||||
static bool ImplHasOtherFormat( DdeTransaction& );
|
||||
|
Reference in New Issue
Block a user