Kaydet (Commit) 7790b6a4 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: convert some BOOLs

Change-Id: I6d6d63a88ef125b12614f1daeab7afbab06c47ca
üst ea2be4ef
...@@ -223,17 +223,17 @@ void ImplSalYieldMutexAcquireWithWait() ...@@ -223,17 +223,17 @@ void ImplSalYieldMutexAcquireWithWait()
if ( pSalData->mnAppThreadId == nThreadId ) if ( pSalData->mnAppThreadId == nThreadId )
{ {
// wait till we get the Mutex // wait till we get the Mutex
bool bAcquire = FALSE; bool bAcquire = false;
do do
{ {
if ( pInst->mpSalYieldMutex->tryToAcquire() ) if ( pInst->mpSalYieldMutex->tryToAcquire() )
bAcquire = TRUE; bAcquire = true;
else else
{ {
pInst->mpSalWaitMutex->acquire(); pInst->mpSalWaitMutex->acquire();
if ( pInst->mpSalYieldMutex->tryToAcquire() ) if ( pInst->mpSalYieldMutex->tryToAcquire() )
{ {
bAcquire = TRUE; bAcquire = true;
pInst->mpSalWaitMutex->release(); pInst->mpSalWaitMutex->release();
} }
else else
...@@ -273,7 +273,7 @@ bool ImplSalYieldMutexTryToAcquire() ...@@ -273,7 +273,7 @@ bool ImplSalYieldMutexTryToAcquire()
if ( pInst ) if ( pInst )
return pInst->mpSalYieldMutex->tryToAcquire(); return pInst->mpSalYieldMutex->tryToAcquire();
else else
return FALSE; return false;
} }
void ImplSalYieldMutexRelease() void ImplSalYieldMutexRelease()
...@@ -398,16 +398,16 @@ SalData::SalData() ...@@ -398,16 +398,16 @@ SalData::SalData()
mnStockBrushCount = 0; // count of static brushes mnStockBrushCount = 0; // count of static brushes
mnSalObjWantKeyEvt = 0; // KeyEvent for the SalObj hook mnSalObjWantKeyEvt = 0; // KeyEvent for the SalObj hook
mnCacheDCInUse = 0; // count of CacheDC in use mnCacheDCInUse = 0; // count of CacheDC in use
mbObjClassInit = FALSE; // is SALOBJECTCLASS initialised mbObjClassInit = false; // is SALOBJECTCLASS initialised
mbInPalChange = FALSE; // is in WM_QUERYNEWPALETTE mbInPalChange = false; // is in WM_QUERYNEWPALETTE
mnAppThreadId = 0; // Id from Applikation-Thread mnAppThreadId = 0; // Id from Applikation-Thread
mbScrSvrEnabled = FALSE; // ScreenSaver enabled mbScrSvrEnabled = FALSE; // ScreenSaver enabled
mnSageStatus = 0; // status of Sage-DLL (DISABLE_AGENT == not available) mnSageStatus = 0; // status of Sage-DLL (DISABLE_AGENT == not available)
mpSageEnableProc = 0; // funktion to deactivate the system agent mpSageEnableProc = 0; // funktion to deactivate the system agent
mpFirstIcon = 0; // icon cache, points to first icon, NULL if none mpFirstIcon = 0; // icon cache, points to first icon, NULL if none
mpTempFontItem = 0; mpTempFontItem = 0;
mbThemeChanged = FALSE; // true if visual theme was changed: throw away theme handles mbThemeChanged = false; // true if visual theme was changed: throw away theme handles
mbThemeMenuSupport = FALSE; mbThemeMenuSupport = false;
// init with NULL // init with NULL
gdiplusToken = 0; gdiplusToken = 0;
...@@ -905,7 +905,7 @@ bool WinSalInstance::AnyInput( VclInputFlags nType ) ...@@ -905,7 +905,7 @@ bool WinSalInstance::AnyInput( VclInputFlags nType )
} }
} }
return FALSE; return false;
} }
void SalTimer::Start( sal_uLong nMS ) void SalTimer::Start( sal_uLong nMS )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment