[Libreoffice-commits] online.git: loolwsd/Admin.cpp
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jul 12 13:56:48 UTC 2016
loolwsd/Admin.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ec0c49447f9dc2a203f18fe2560fcb342ddc31d1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jul 12 15:56:17 2016 +0200
Admin: avoid unsigned long -> unsigned int coversion
diff --git a/loolwsd/Admin.cpp b/loolwsd/Admin.cpp
index e9344d6..540d36b 100644
--- a/loolwsd/Admin.cpp
+++ b/loolwsd/Admin.cpp
@@ -72,14 +72,14 @@ bool AdminRequestHandler::adminCommandHandler(const std::vector<char>& payload)
}
else if (tokens[0] == "subscribe" && tokens.count() > 1)
{
- for (unsigned i = 0; i < tokens.count() - 1; i++)
+ for (std::size_t i = 0; i < tokens.count() - 1; i++)
{
model.subscribe(_sessionId, tokens[i + 1]);
}
}
else if (tokens[0] == "unsubscribe" && tokens.count() > 1)
{
- for (unsigned i = 0; i < tokens.count() - 1; i++)
+ for (std::size_t i = 0; i < tokens.count() - 1; i++)
{
model.unsubscribe(_sessionId, tokens[i + 1]);
}
More information about the Libreoffice-commits
mailing list