summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-31 16:54:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 03:56:16 +0300
commit761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch)
tree2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/commandhandler.cpp
parenta39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff)
downloadManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz
ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2
ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz
ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip
Last part of fixes.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index c19836cc5..95d987ead 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -86,7 +86,7 @@ void CommandHandler::handleCommands(const std::string &command, ChatTab *tab)
void CommandHandler::handleCommand(const std::string &command, ChatTab *tab)
{
- std::string::size_type pos = command.find(' ');
+ size_t pos = command.find(' ');
std::string type(command, 0, pos);
std::string args(command, pos == std::string::npos
? command.size() : pos + 1);
@@ -298,7 +298,7 @@ void CommandHandler::handleMsg(const std::string &args, ChatTab *tab)
if (args.substr(0, 1) == "\"")
{
- const std::string::size_type pos = args.find('"', 1);
+ const size_t pos = args.find('"', 1);
if (pos != std::string::npos)
{
recvnick = args.substr(1, pos - 1);
@@ -308,7 +308,7 @@ void CommandHandler::handleMsg(const std::string &args, ChatTab *tab)
}
else
{
- const std::string::size_type pos = args.find(" ");
+ const size_t pos = args.find(" ");
if (pos != std::string::npos)
{
recvnick = args.substr(0, pos);
@@ -369,7 +369,7 @@ void CommandHandler::handleJoin(const std::string &args, ChatTab *tab)
if (!tab)
return;
- std::string::size_type pos = args.find(' ');
+ size_t pos = args.find(' ');
std::string name(args, 0, pos);
std::string password(args, pos + 1);
tab->chatLog(strprintf(_("Requesting to join channel %s."), name.c_str()));
@@ -677,7 +677,7 @@ bool CommandHandler::parse2Int(const std::string &args, int *x, int *y)
return false;
bool isValid = false;
- const std::string::size_type pos = args.find(" ");
+ const size_t pos = args.find(" ");
if (pos != std::string::npos)
{
if (pos + 1 < args.length())