From b124db78c071af5cae047549559f801d05438d71 Mon Sep 17 00:00:00 2001 From: nobounce Date: Tue, 3 Oct 2023 13:32:28 +0200 Subject: [PATCH] Don't pass int by reference --- src/btop.cpp | 2 +- src/btop_config.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }