diff --git a/src/btop.cpp b/src/btop.cpp index 6a57240..6c7eb99 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -112,7 +112,7 @@ namespace Global { } //* A simple argument parser -void argumentParser(const int& argc, char **argv) { +void argumentParser(const int argc, char **argv) { for(int i = 1; i < argc; i++) { const string argument = argv[i]; if (is_in(argument, "-h", "--help")) { diff --git a/src/btop_config.hpp b/src/btop_config.hpp index b93509f..8d1d579 100644 --- a/src/btop_config.hpp +++ b/src/btop_config.hpp @@ -97,7 +97,7 @@ namespace Config { } //* Set config key to int - inline void set(const std::string_view name, const int& value) { + inline void set(const std::string_view name, const int value) { if (_locked(name)) intsTmp.insert_or_assign(name, value); else ints.at(name) = value; }