mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
Removed auto type as is not accepted --
This commit is contained in:
@@ -346,7 +346,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
|
|||||||
tmp = tmp.substr(pos + 2);
|
tmp = tmp.substr(pos + 2);
|
||||||
|
|
||||||
// find the first separator
|
// find the first separator
|
||||||
auto pos1 = tmp.find("?");
|
int pos1 = tmp.find("?");
|
||||||
if (pos1 == std::string::npos) {
|
if (pos1 == std::string::npos) {
|
||||||
// not found.
|
// not found.
|
||||||
outs += tmp;
|
outs += tmp;
|
||||||
@@ -354,7 +354,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find the second separator
|
// find the second separator
|
||||||
auto pos2 = tmp.find("?", pos1 + 1);
|
int pos2 = tmp.find("?", pos1 + 1);
|
||||||
if (pos2 == std::string::npos) {
|
if (pos2 == std::string::npos) {
|
||||||
// not found
|
// not found
|
||||||
outs += tmp;
|
outs += tmp;
|
||||||
@@ -362,7 +362,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find the end of the actual rfc2047 chunk
|
// find the end of the actual rfc2047 chunk
|
||||||
auto pos3 = tmp.find("?=", pos2 + 1);
|
int pos3 = tmp.find("?=", pos2 + 1);
|
||||||
if (pos3 == std::string::npos) {
|
if (pos3 == std::string::npos) {
|
||||||
// not found.
|
// not found.
|
||||||
outs += tmp;
|
outs += tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user