From 4df121e6dcdf53436f50ce81dd60096ce0138a2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Sep 2012 20:49:03 +0300 Subject: Add const to more classes. --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d3683be1e..9c10fad04 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,9 +90,10 @@ static void printVersion() std::cout << strprintf("ManaPlus client %s", FULL_VERSION) << std::endl; } -static void parseOptions(int argc, char *argv[], Client::Options &options) +static void parseOptions(const int argc, char *const argv[], + Client::Options &options) { - const char *optstring = "hvud:U:P:Dc:p:l:L:C:s:t:T"; + const char *const optstring = "hvud:U:P:Dc:p:l:L:C:s:t:T"; const struct option long_options[] = { @@ -122,7 +123,8 @@ static void parseOptions(int argc, char *argv[], Client::Options &options) while (optind < argc) { - int result = getopt_long(argc, argv, optstring, long_options, nullptr); + const int result = getopt_long(argc, argv, + optstring, long_options, nullptr); if (result == -1) break; -- cgit v1.2.3-70-g09d2