use size_t instead of int where it's appropriate

This commit is contained in:
Andrzej Rybczak
2008-11-06 20:07:42 +01:00
parent 2fcd43dd3b
commit c64e3a9b3b
9 changed files with 38 additions and 37 deletions

View File

@@ -98,7 +98,7 @@ void MPDConnection::Disconnect()
void MPDConnection::SetHostname(const string &host)
{
int at = host.find("@");
size_t at = host.find("@");
if (at != string::npos)
{
MPD_PASSWORD = host.substr(0, at);