diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-22 20:40:03 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-22 20:40:03 +0300 |
| commit | 5cc7c6ddeb01ec91b2e3e36930f0a081a98920ed (patch) | |
| tree | 79ffe5c0a9a59fa6c86b6a82313ebdd33d2951b1 | |
| parent | ee8a1573204f76b16b9fb711608447aabee55696 (diff) | |
Make argv const.
| -rw-r--r-- | src/configuration.cpp | 2 | ||||
| -rw-r--r-- | src/configuration.hpp | 4 | ||||
| -rw-r--r-- | src/specgram.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 8071345..77eb374 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -146,7 +146,7 @@ Configuration::StringToScale(const std::string &str) } std::tuple<Configuration, int, bool> -Configuration::Build(int argc, char **argv) +Configuration::Build(int argc, const char **argv) { Configuration conf; diff --git a/src/configuration.hpp b/src/configuration.hpp index 7659237..0cc9197 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -96,7 +96,7 @@ public: * @param argv Argument count. * @return New Configuration object instance. */ - static std::tuple<Configuration, int, bool> Build(int argc, char **argv); + static std::tuple<Configuration, int, bool> Build(int argc, const char **argv); /* generic getters */ Configuration GetForLive() const; @@ -157,4 +157,4 @@ public: sf::Color GetLiveGuidelinesColor() const; }; -#endif
\ No newline at end of file +#endif diff --git a/src/specgram.cpp b/src/specgram.cpp index 6d84135..0e4560c 100644 --- a/src/specgram.cpp +++ b/src/specgram.cpp @@ -138,7 +138,7 @@ int main(int argc, char** argv) { /* parse command line arguments into global settings */ - auto [conf, conf_rc, conf_must_exit] = Configuration::Build(argc, argv); + auto [conf, conf_rc, conf_must_exit] = Configuration::Build(argc, (const char **)argv); if (conf_must_exit) { return conf_rc; } @@ -368,4 +368,4 @@ main(int argc, char** argv) /* all ok */ return 0; -}
\ No newline at end of file +} |
