summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-11-12 20:08:59 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-11-12 20:18:11 (GMT)
commitdce792fe9583fcb99b5367c089e749aef269d6e9 (patch)
tree045b49d93a436cfe7bce888e655c63a07107f939 /Swiften/EventLoop
parent9b83adf9eb38d10f8cd1108d4c608117a1f8459d (diff)
downloadswift-dce792fe9583fcb99b5367c089e749aef269d6e9.zip
swift-dce792fe9583fcb99b5367c089e749aef269d6e9.tar.bz2
Use more efficient empty check.
Change-Id: I8690af82a7f73d3883057b2a58a19197d6b09842
Diffstat (limited to 'Swiften/EventLoop')
-rw-r--r--Swiften/EventLoop/SingleThreadedEventLoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/EventLoop/SingleThreadedEventLoop.cpp b/Swiften/EventLoop/SingleThreadedEventLoop.cpp
index 4c5e209..c2235b1 100644
--- a/Swiften/EventLoop/SingleThreadedEventLoop.cpp
+++ b/Swiften/EventLoop/SingleThreadedEventLoop.cpp
@@ -27,7 +27,7 @@ SingleThreadedEventLoop::~SingleThreadedEventLoop() {
void SingleThreadedEventLoop::waitForEvents() {
boost::unique_lock<boost::mutex> lock(eventsMutex_);
- while (events_.size() == 0 && !shouldShutDown_) {
+ while (events_.empty() && !shouldShutDown_) {
eventsAvailable_.wait(lock);
}