diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2013-11-14 11:31:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-20 03:31:32 -0600 |
commit | bee6b3e6dad729263d10daf1550826871c57fe05 (patch) | |
tree | dc7bcf5ce3d6c8fec7f2f12c88542f17b96d9b53 /vcl | |
parent | 205b77054a03e7d665167d6693ebaf476773aaf2 (diff) |
Drop processYield return type.
The virtual Yield function has no return type, and the result of
processYield is actually never used => drop it.
Change-Id: I3da7bc99fd8f56301da37ca196b03b34cdc84a40
Reviewed-on: https://gerrit.libreoffice.org/6684
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde4/KDEXLib.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/kde4/KDEXLib.hxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx index 21b793911ebc..c50bd77dab6b 100644 --- a/vcl/unx/kde4/KDEXLib.cxx +++ b/vcl/unx/kde4/KDEXLib.cxx @@ -308,7 +308,7 @@ void KDEXLib::Yield( bool bWait, bool bHandleAllCurrentEvents ) } } -bool KDEXLib::processYield( bool bWait, bool bHandleAllCurrentEvents ) +void KDEXLib::processYield( bool bWait, bool bHandleAllCurrentEvents ) { QAbstractEventDispatcher* dispatcher = QAbstractEventDispatcher::instance( qApp->thread()); bool wasEvent = false; @@ -321,8 +321,7 @@ bool KDEXLib::processYield( bool bWait, bool bHandleAllCurrentEvents ) wasEvent = true; } if( bWait && !wasEvent ) - wasEvent = dispatcher->processEvents( QEventLoop::WaitForMoreEvents ); - return wasEvent; + dispatcher->processEvents( QEventLoop::WaitForMoreEvents ); } void KDEXLib::StartTimer( sal_uLong nMS ) diff --git a/vcl/unx/kde4/KDEXLib.hxx b/vcl/unx/kde4/KDEXLib.hxx index 1e1a9db1361c..1e3adc9e7a0d 100644 --- a/vcl/unx/kde4/KDEXLib.hxx +++ b/vcl/unx/kde4/KDEXLib.hxx @@ -60,7 +60,7 @@ class KDEXLib : public QObject, public SalXLib void userEventActivated(); void startTimeoutTimer(); void startUserEventTimer(); - bool processYield( bool bWait, bool bHandleAllCurrentEvents ); + void processYield( bool bWait, bool bHandleAllCurrentEvents ); Q_SIGNALS: void startTimeoutTimerSignal(); void startUserEventTimerSignal(); |