mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix deprecation warnings
This commit is contained in:
parent
a1ea2066f7
commit
8410ea8b5f
|
@ -194,11 +194,11 @@ CoreController::CoreController(mCore* core, QObject* parent)
|
||||||
}
|
}
|
||||||
va_list argc;
|
va_list argc;
|
||||||
va_copy(argc, args);
|
va_copy(argc, args);
|
||||||
message = QString().vsprintf(format, argc);
|
message = QString::vasprintf(format, argc);
|
||||||
va_end(argc);
|
va_end(argc);
|
||||||
QMetaObject::invokeMethod(controller, "statusPosted", Q_ARG(const QString&, message));
|
QMetaObject::invokeMethod(controller, "statusPosted", Q_ARG(const QString&, message));
|
||||||
}
|
}
|
||||||
message = QString().vsprintf(format, args);
|
message = QString::vasprintf(format, args);
|
||||||
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
|
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
|
||||||
if (level == mLOG_FATAL) {
|
if (level == mLOG_FATAL) {
|
||||||
mCoreThreadMarkCrashed(controller->thread());
|
mCoreThreadMarkCrashed(controller->thread());
|
||||||
|
|
|
@ -69,7 +69,7 @@ void DebuggerConsoleController::printf(struct CLIDebuggerBackend* be, const char
|
||||||
DebuggerConsoleController* self = consoleBe->self;
|
DebuggerConsoleController* self = consoleBe->self;
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
self->log(QString().vsprintf(fmt, args));
|
self->log(QString::vasprintf(fmt, args));
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue