[ion] ion_main takes const arguments

This commit is contained in:
Romain Goyet
2019-10-10 16:49:46 +02:00
committed by LeaNumworks
parent 577e7db8dd
commit 758c217120
8 changed files with 8 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ bool App::Snapshot::lockOnConsole() const {
return m_lockOnConsole;
}
void App::Snapshot::setOpt(const char * name, char * value) {
void App::Snapshot::setOpt(const char * name, const char * value) {
if (strcmp(name, "script") == 0) {
m_scriptStore.deleteAllScripts();
char * separator = const_cast<char *>(UTF8Helper::CodePointSearch(value, ':'));