Fix warning.
GitOrigin-RevId: 9f43d43faad9e19d56f97b506aa6f4c4efb3659e
This commit is contained in:
parent
a919bfa358
commit
37efb237c7
@ -1217,7 +1217,7 @@ class CliClient final : public Actor {
|
|||||||
|
|
||||||
void on_cmd(string cmd) {
|
void on_cmd(string cmd) {
|
||||||
// TODO: need to remove https://en.wikipedia.org/wiki/ANSI_escape_code from cmd
|
// TODO: need to remove https://en.wikipedia.org/wiki/ANSI_escape_code from cmd
|
||||||
cmd.erase(std::remove_if(cmd.begin(), cmd.end(), [](char c) { return 0 <= c && c < 32; }), cmd.end());
|
cmd.erase(std::remove_if(cmd.begin(), cmd.end(), [](unsigned char c) { return c < 32; }), cmd.end());
|
||||||
LOG(INFO) << "CMD:[" << cmd << "]";
|
LOG(INFO) << "CMD:[" << cmd << "]";
|
||||||
|
|
||||||
string op;
|
string op;
|
||||||
|
Reference in New Issue
Block a user