fix: remove redundant
This commit is contained in:
parent
075afd95c9
commit
fbd0ce5065
|
|
@ -14,13 +14,13 @@ public:
|
||||||
std::string ret;
|
std::string ret;
|
||||||
ret.reserve(s.length() + t.length());
|
ret.reserve(s.length() + t.length());
|
||||||
while (*sp && *tp) {
|
while (*sp && *tp) {
|
||||||
ret.push_back(*(sp++));
|
ret.push_back(*sp++);
|
||||||
ret.push_back(*(tp++));
|
ret.push_back(*tp++);
|
||||||
}
|
}
|
||||||
while (*sp)
|
while (*sp)
|
||||||
ret.push_back(*(sp++));
|
ret.push_back(*sp++);
|
||||||
while (*tp)
|
while (*tp)
|
||||||
ret.push_back(*(tp++));
|
ret.push_back(*tp++);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue