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/Whiteboard/WhiteboardServer.cpp
parent9b83adf9eb38d10f8cd1108d4c608117a1f8459d (diff)
downloadswift-contrib-dce792fe9583fcb99b5367c089e749aef269d6e9.zip
swift-contrib-dce792fe9583fcb99b5367c089e749aef269d6e9.tar.bz2
Use more efficient empty check.
Change-Id: I8690af82a7f73d3883057b2a58a19197d6b09842
Diffstat (limited to 'Swiften/Whiteboard/WhiteboardServer.cpp')
-rw-r--r--Swiften/Whiteboard/WhiteboardServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Whiteboard/WhiteboardServer.cpp b/Swiften/Whiteboard/WhiteboardServer.cpp
index be595fd..94f8cff 100644
--- a/Swiften/Whiteboard/WhiteboardServer.cpp
+++ b/Swiften/Whiteboard/WhiteboardServer.cpp
@@ -15,7 +15,7 @@ namespace Swift {
WhiteboardOperation::ref WhiteboardServer::handleClientOperationReceived(WhiteboardOperation::ref newOperation) {
std::list<WhiteboardOperation::ref>::reverse_iterator it;
- if (operations_.size() == 0 || newOperation->getParentID() == operations_.back()->getID()) {
+ if (operations_.empty() || newOperation->getParentID() == operations_.back()->getID()) {
operations_.push_back(newOperation);
return newOperation;
}