aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/plugins
diff options
context:
space:
mode:
authorPhilip Damianik <[email protected]>2023-10-15 20:07:23 +0200
committerGitHub <[email protected]>2023-10-15 19:07:23 +0100
commit442209942fdedbdded6362cafed736c327da0e1c (patch)
tree8e8b257bc9656f5364be9f56509b8bbdd88b1cdd /src/plugins
parent43b39e0bc6a83ce190ff09054beb713e0431f19b (diff)
downloadHyprland-442209942fdedbdded6362cafed736c327da0e1c.tar.gz
Hyprland-442209942fdedbdded6362cafed736c327da0e1c.zip
cleanup: Replace find() with C++20 starts_with(), ends_with() and contains() (#3572)
* Replace find() with C++20 starts_with() and ends_with() * Replace find() with C++20 contains()
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/PluginAPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp
index ae289396..8d2f6627 100644
--- a/src/plugins/PluginAPI.cpp
+++ b/src/plugins/PluginAPI.cpp
@@ -153,7 +153,7 @@ APICALL bool HyprlandAPI::addConfigValue(HANDLE handle, const std::string& name,
if (!PLUGIN)
return false;
- if (name.find("plugin:") != 0)
+ if (!name.starts_with("plugin:"))
return false;
g_pConfigManager->addPluginConfigVar(handle, name, value);