From: <mr...@bl...> - 2004-04-30 12:12:42
|
Author: mrowe Date: 2004-05-01 00:12:39 +1200 (Sat, 01 May 2004) New Revision: 109 Modified: trunk/msn/message.cpp Log: Silence warnings and hopefully fix error mentioned by Adam Palmer <ad...@np...>. Modified: trunk/msn/message.cpp =================================================================== --- trunk/msn/message.cpp 2004-04-30 12:06:38 UTC (rev 108) +++ trunk/msn/message.cpp 2004-04-30 12:12:39 UTC (rev 109) @@ -118,7 +118,7 @@ { std::string color = this->getFormatInfo()["CO"]; assert(color.size() <= 6 && color.size() >= 0); - color.insert(0, 6 - color.size(), '0'); + color.insert(0U, 6 - color.size(), '0'); int r = 0, g = 0, b = 0; b = strtol(color.substr(0, 2).c_str(), NULL, 16); @@ -161,7 +161,7 @@ void Message::setColor(std::string color) { - color.insert(0, 6 - color.size(), '0'); + color.insert(0U, 6 - color.size(), '0'); int r = 0, g = 0, b = 0; r = strtol(color.substr(0, 2).c_str(), NULL, 16); @@ -304,7 +304,7 @@ std::string retval; std::string::iterator i; - if (this->rawContents.compare(0, header_.size(), header_) == 0) + if (this->rawContents.substr(0, header_.size()) == header_) { retval = this->rawContents; } else { |