Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2023-06-28 11:32:14 +08:00
parent 31fb359c09
commit 21a48c631b
2 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,7 @@ public:
static void OperateSoftkeyboardBehaviour(OperateIMEInfoCode infoCode);
private:
static std::string GetOperateInfo(OperateIMEInfoCode infoCode);
static const std::string GetOperateInfo(OperateIMEInfoCode infoCode);
static std::string GetOperateAction(OperateIMEInfoCode infoCode);
private:

View File

@ -74,12 +74,11 @@ void InputMethodSysEvent::OperateSoftkeyboardBehaviour(OperateIMEInfoCode infoCo
}
}
std::string InputMethodSysEvent::GetOperateInfo(OperateIMEInfoCode infoCode)
const std::string InputMethodSysEvent::GetOperateInfo(OperateIMEInfoCode infoCode)
{
auto iter = operateInfo_.find(infoCode);
if (iter != operateInfo_.end()) {
std::string info = iter->second;
return info;
return iter->second;
}
return "unknow operating.";
}