Don't pass int by reference

This commit is contained in:
nobounce 2023-10-03 13:32:28 +02:00 committed by Steffen Winter
parent f6cab3d3bd
commit b124db78c0
2 changed files with 2 additions and 2 deletions

View file

@ -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")) {

View file

@ -97,7 +97,7 @@ namespace Config {
}
//* Set config key <name> to int <value>
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;
}