mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 11:36:47 +08:00
restore interface
This commit is contained in:
@@ -235,11 +235,11 @@ public:
|
||||
this->request_id = id;
|
||||
}
|
||||
|
||||
void set_request_name(std::string name)
|
||||
void set_request_name(const std::string& name)
|
||||
{
|
||||
while (name.size() > 1 && name.back() == '.')
|
||||
name.pop_back();
|
||||
this->request_name = std::move(name);
|
||||
this->request_name = name;
|
||||
while (!name.empty() && name.back() == '.')
|
||||
this->request_name.pop_back();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user