diff --git a/src/app/application/application.cpp b/src/app/application/application.cpp index 0ef3975..7c6cca8 100644 --- a/src/app/application/application.cpp +++ b/src/app/application/application.cpp @@ -302,7 +302,7 @@ void Application::InitClassMembers() ZSwapDebugger = std::make_unique(); } -void Application::InitCmdLineOptions() +void Application::InitCmdLineOptions() const { boost::program_options::options_description OptionsGeneral("General options"); OptionsGeneral.add_options() @@ -333,7 +333,7 @@ void Application::InitCmdLineOptions() CmdLineOptions -> add(OptionsGeneral).add(OptionsConfiguration).add(OptionsZSwap); } -void Application::InitConfigOptions() +void Application::InitConfigOptions() const { ConfigOptions -> add_options() ("zswap.enabled", boost::program_options::value(), "Enable or disable the ZSwap kernel module.") @@ -348,7 +348,7 @@ void Application::InitConfigOptions() ; } -void Application::ParseCmdLine(int argc, char** argv) +void Application::ParseCmdLine(int argc, char** argv) const { boost::program_options::store(boost::program_options::parse_command_line(argc, argv, *CmdLineOptions), *CmdLine); CmdLine -> notify(); diff --git a/src/app/application/application.hpp b/src/app/application/application.hpp index abcdd0f..a94ab7c 100644 --- a/src/app/application/application.hpp +++ b/src/app/application/application.hpp @@ -79,20 +79,20 @@ class Application * Initializes the list of available command-line options * with their descriptions. */ - void InitCmdLineOptions(); + void InitCmdLineOptions() const; /** * Initializes the list of available configuration file options * with their descriptions. */ - void InitConfigOptions(); + void InitConfigOptions() const; /** * Parses command-line arguments to the map. * @param argc Command-line arguments count. * @param argv Command-line arguments array. */ - void ParseCmdLine(int, char**); + void ParseCmdLine(int, char**) const; /** * Reads and parses the specified configuration file.