summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 16:27:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 07:34:13 +0100
commit4cfcf965b5c95b1ba7dd454e9dda954e8315b8a9 (patch)
tree394c3c23ea9deeabcc7c3b1ac477f44b3a02a85d /vcl/win
parent0d6b4f5f6946cdadfe2a09946df90fa08f3588d0 (diff)
ReleaseYieldMutex is always called with true
so drop param and rename to ReleaseYieldMutexAll Change-Id: Ic4fcee24d46405659e54363c87f21d88696b0ce1 Reviewed-on: https://gerrit.libreoffice.org/44057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/app/salinst.cxx4
-rw-r--r--vcl/win/gdi/salprn.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index 442a937af6ee..5671361c987b 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -449,9 +449,9 @@ comphelper::SolarMutex* WinSalInstance::GetYieldMutex()
return mpSalYieldMutex;
}
-sal_uInt32 WinSalInstance::ReleaseYieldMutex( bool bUnlockAll )
+sal_uInt32 WinSalInstance::ReleaseYieldMutexAll()
{
- return mpSalYieldMutex->release( bUnlockAll );
+ return mpSalYieldMutex->release( true/*bUnlockAll*/ );
}
void WinSalInstance::AcquireYieldMutex( sal_uInt32 nCount )
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index 07c2da6d7504..a961bbf4ace2 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -400,7 +400,7 @@ static bool ImplUpdateSalJobSetup( WinSalInfoPrinter const * pPrinter, ImplJobSe
sal_uInt32 nMutexCount = 0;
WinSalInstance* pInst = GetSalData()->mpInstance;
if ( pInst && pVisibleDlgParent )
- nMutexCount = pInst->ReleaseYieldMutex( true );
+ nMutexCount = pInst->ReleaseYieldMutexAll();
BYTE* pOutDevMode = (reinterpret_cast<BYTE*>(pOutBuffer) + pOutBuffer->mnDriverOffset);
nRet = DocumentPropertiesW( hWnd, hPrn,