diff options
Diffstat (limited to 'Swiften/Server/ServerStanzaRouter.cpp')
-rw-r--r-- | Swiften/Server/ServerStanzaRouter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/Server/ServerStanzaRouter.cpp b/Swiften/Server/ServerStanzaRouter.cpp index b4d230a..1725359 100644 --- a/Swiften/Server/ServerStanzaRouter.cpp +++ b/Swiften/Server/ServerStanzaRouter.cpp @@ -4,8 +4,9 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#include "Swiften/Server/ServerStanzaRouter.h" -#include "Swiften/Server/ServerSession.h" +#include <Swiften/Server/ServerStanzaRouter.h> +#include <Swiften/Server/ServerSession.h> +#include <Swiften/Base/Algorithm.h> #include <cassert> #include <algorithm> @@ -67,7 +68,7 @@ void ServerStanzaRouter::addClientSession(ServerSession* clientSession) { } void ServerStanzaRouter::removeClientSession(ServerSession* clientSession) { - clientSessions_.erase(std::remove(clientSessions_.begin(), clientSessions_.end(), clientSession), clientSessions_.end()); + erase(clientSessions_, clientSession); } } |