Skip to content

Commit

Permalink
Removed a one more auto.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmribti committed Jan 16, 2016
1 parent 25f2f9b commit fc2fd47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Net/src/MessageHeader.cpp
Expand Up @@ -330,7 +330,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
do {
std::string tmp2;
// find the begining of the next rfc2047 chunk
auto pos = tmp.find("=?");
size_t pos = tmp.find("=?");
if (pos == std::string::npos) {
// No more found, return
outs += tmp;
Expand All @@ -346,23 +346,23 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
tmp = tmp.substr(pos + 2);

// find the first separator
int pos1 = tmp.find("?");
size_t pos1 = tmp.find("?");
if (pos1 == std::string::npos) {
// not found.
outs += tmp;
break;
}

// find the second separator
int pos2 = tmp.find("?", pos1 + 1);
size_t pos2 = tmp.find("?", pos1 + 1);
if (pos2 == std::string::npos) {
// not found
outs += tmp;
break;
}

// find the end of the actual rfc2047 chunk
int pos3 = tmp.find("?=", pos2 + 1);
size_t pos3 = tmp.find("?=", pos2 + 1);
if (pos3 == std::string::npos) {
// not found.
outs += tmp;
Expand Down

0 comments on commit fc2fd47

Please sign in to comment.