changed C++ std to C++23, use std::string::contains
This commit is contained in:
parent
0d7a8cca79
commit
f9756d10d4
9 changed files with 29 additions and 29 deletions
|
|
@ -158,7 +158,7 @@ std::string dispatchKeyword(std::string in) {
|
|||
if (COMMAND == "monitor")
|
||||
g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
|
||||
|
||||
if (COMMAND.find("input") != std::string::npos)
|
||||
if (COMMAND.contains("input"))
|
||||
g_pInputManager->setKeyboardLayout(); // update kb layout
|
||||
|
||||
Debug::log(LOG, "Hyprctl: keyword %s : %s", COMMAND.c_str(), VALUE.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue