diff options
author | Vaxry <[email protected]> | 2024-12-16 15:58:19 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-16 15:58:19 +0000 |
commit | a5234f26e4b7146ae7c2df25950f0177534cd643 (patch) | |
tree | be319115cca2eb369791fad1822bdda0e0f358e9 /hyprctl | |
parent | de3ad245dcbcd42c88e9afc48264bdb8f2356c15 (diff) | |
download | Hyprland-a5234f26e4b7146ae7c2df25950f0177534cd643.tar.gz Hyprland-a5234f26e4b7146ae7c2df25950f0177534cd643.zip |
core: drop using deques in favor of vectors
No point in most of these.
Diffstat (limited to 'hyprctl')
-rw-r--r-- | hyprctl/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 4092bca0..55c3cc7e 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -21,7 +21,6 @@ #include <fstream> #include <string> #include <vector> -#include <deque> #include <filesystem> #include <cstdarg> #include <regex> @@ -322,11 +321,11 @@ void instancesRequest(bool json) { log(result + "\n"); } -std::deque<std::string> splitArgs(int argc, char** argv) { - std::deque<std::string> result; +std::vector<std::string> splitArgs(int argc, char** argv) { + std::vector<std::string> result; for (auto i = 1 /* skip the executable */; i < argc; ++i) - result.push_back(std::string(argv[i])); + result.emplace_back(argv[i]); return result; } |