CommandlineOptions: Add const
This commit is contained in:
parent
147fd87d8c
commit
7b8919d706
|
@ -416,7 +416,7 @@ void CommandlineOptions::Load(const QByteArray &serialized) {
|
|||
}
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
QString CommandlineOptions::OptArgToString(wchar_t *opt) {
|
||||
QString CommandlineOptions::OptArgToString(const wchar_t *opt) {
|
||||
|
||||
return QString::fromWCharArray(opt);
|
||||
|
||||
|
@ -427,7 +427,7 @@ QString CommandlineOptions::DecodeName(wchar_t *opt) {
|
|||
return QString::fromWCharArray(opt);
|
||||
}
|
||||
#else
|
||||
QString CommandlineOptions::OptArgToString(char *opt) {
|
||||
QString CommandlineOptions::OptArgToString(const char *opt) {
|
||||
|
||||
return QString::fromUtf8(opt);
|
||||
}
|
||||
|
|
|
@ -108,10 +108,10 @@ class CommandlineOptions {
|
|||
void RemoveArg(const QString &starts_with, int count);
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
static QString OptArgToString(wchar_t *opt);
|
||||
static QString OptArgToString(const wchar_t *opt);
|
||||
static QString DecodeName(wchar_t *opt);
|
||||
#else
|
||||
static QString OptArgToString(char *opt);
|
||||
static QString OptArgToString(const char *opt);
|
||||
static QString DecodeName(char *opt);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue