diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-01 20:49:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 00:37:51 +0300 |
commit | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch) | |
tree | 7cadc707bb49e4c148ba9c182075697a9643e20a /src/main.cpp | |
parent | ed3410d7eb61593a2235ddba97ce257c85e405a6 (diff) | |
download | manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2 manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip |
Add const to more classes.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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; |