summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-11-15 15:55:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-11-15 15:55:37 (GMT)
commit6d20b700fc8bc285fd58dceb73c89baf58592ddd (patch)
tree04f92ebaef00ecbd665f3351f0031ae9ad1a8c98 /Swiften/Queries
parent6625c07d980f0761f64bde24d3b7f63cfc7e21d1 (diff)
downloadswift-contrib-6d20b700fc8bc285fd58dceb73c89baf58592ddd.zip
swift-contrib-6d20b700fc8bc285fd58dceb73c89baf58592ddd.tar.bz2
Fix compilation on OS X
Diffstat (limited to 'Swiften/Queries')
-rw-r--r--Swiften/Queries/IQRouter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Queries/IQRouter.cpp b/Swiften/Queries/IQRouter.cpp
index 7fa2dcf..6e80b3f 100644
--- a/Swiften/Queries/IQRouter.cpp
+++ b/Swiften/Queries/IQRouter.cpp
@@ -34,7 +34,9 @@ void IQRouter::handleIQ(boost::shared_ptr<IQ> iq) {
bool handled = false;
// Go through the handlers in reverse order, to give precedence to the last added handler
- for (std::vector<boost::shared_ptr<IQHandler> >::const_reverse_iterator i = handlers_.rbegin(); i != handlers_.rend(); ++i) {
+ std::vector<boost::shared_ptr<IQHandler> >::const_reverse_iterator i = handlers_.rbegin();
+ std::vector<boost::shared_ptr<IQHandler> >::const_reverse_iterator rend = handlers_.rend();
+ for (; i != rend; ++i) {
handled |= (*i)->handleIQ(iq);
if (handled) {
break;