fix: remove redundant

This commit is contained in:
Eatswap 2022-10-23 02:24:29 +08:00
parent 075afd95c9
commit fbd0ce5065
Signed by: Eatswap
GPG Key ID: BE661106A1F3FA0B
1 changed files with 4 additions and 4 deletions

View File

@ -14,13 +14,13 @@ public:
std::string ret;
ret.reserve(s.length() + t.length());
while (*sp && *tp) {
ret.push_back(*(sp++));
ret.push_back(*(tp++));
ret.push_back(*sp++);
ret.push_back(*tp++);
}
while (*sp)
ret.push_back(*(sp++));
ret.push_back(*sp++);
while (*tp)
ret.push_back(*(tp++));
ret.push_back(*tp++);
return ret;
}
};