diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-23 21:44:36 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-11-24 09:02:31 +0000 |
commit | 4bd8ffd27f17ec4915790a260087ef1890169911 (patch) | |
tree | 063b8ac7c5909252934fffe00dd90367f94ab7b7 /vcl/headless/svpinst.cxx | |
parent | 37b5f1ed3139b8569bfec0fcb5077f6b66b79acd (diff) |
Replace return boolean from DoYield with pleasant enumeration.
Change-Id: I1b1f885b4d7916a18dfb2457a8e9af9a5b4ae6e4
Reviewed-on: https://gerrit.libreoffice.org/20138
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/headless/svpinst.cxx')
-rw-r--r-- | vcl/headless/svpinst.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx index ec7039a315e0..0d765c19fa5c 100644 --- a/vcl/headless/svpinst.cxx +++ b/vcl/headless/svpinst.cxx @@ -261,7 +261,7 @@ SalBitmap* SvpSalInstance::CreateSalBitmap() #endif } -bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased) +SalYieldResult SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased) { (void) nReleased; assert(nReleased == 0); // not implemented @@ -329,7 +329,8 @@ bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong DoReleaseYield(nTimeoutMS); } - return bEvent; + return bEvent ? SalYieldResult::EVENT : + SalYieldResult::TIMEOUT; } void SvpSalInstance::DoReleaseYield( int nTimeoutMS ) |