diff --git a/src/lib/deskflow/IKeyState.cpp b/src/lib/deskflow/IKeyState.cpp index ac01f3f96..8c65a5687 100644 --- a/src/lib/deskflow/IKeyState.cpp +++ b/src/lib/deskflow/IKeyState.cpp @@ -127,14 +127,14 @@ void IKeyState::KeyInfo::split(const char *screens, std::set &dst) return; } if (screens[0] == '*') { - dst.insert("*"); + dst.emplace("*"); return; } const char *i = screens + 1; while (*i != '\0') { const char *j = strchr(i, ':'); - dst.insert(std::string(i, j - i)); + dst.emplace(std::string(i, j - i)); i = j + 1; } }