summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-23 21:44:36 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-24 09:02:31 +0000
commit4bd8ffd27f17ec4915790a260087ef1890169911 (patch)
tree063b8ac7c5909252934fffe00dd90367f94ab7b7 /vcl/osx
parent37b5f1ed3139b8569bfec0fcb5077f6b66b79acd (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/osx')
-rw-r--r--vcl/osx/salinst.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index f2afec8c71d6..8cdce3ffc4f5 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -559,7 +559,7 @@ class ReleasePoolHolder
~ReleasePoolHolder() { [mpPool release]; }
};
-bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased)
+SalYieldResult AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased)
{
(void) nReleased;
assert(nReleased == 0); // not implemented
@@ -600,7 +600,7 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLon
osl_setCondition( maWaitingYieldCond );
// return if only one event is asked for
if( ! bHandleAllCurrentEvents )
- return true;
+ return SalYieldResult::EVENT;
}
}
@@ -711,7 +711,7 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLon
}
}
- return bHadEvent;
+ return bHadEvent ? SalYieldResult::EVENT : SalYieldResult::TIMEOUT;
}
bool AquaSalInstance::AnyInput( VclInputFlags nType )