tst_QFontEngine: fix argc going out of scope
Q{Core,Gui,}Application constructors take a reference to argc. Amends 4db368d4741eff4d2b2942c25d5e633648e23a64. Change-Id: I0a0c9a0ba574133ac7b8fffdb80e4656267d2ed2 Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 434222f635ac134c64dd1d523f1f81dc1c598d90) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5b10a1e8b4
commit
b6d2f86695
@ -79,6 +79,7 @@ private:
|
||||
QByteArray platformArgument;
|
||||
QList<const char *> theArguments;
|
||||
std::unique_ptr<QGuiApplication> theApp;
|
||||
int argc = -1;
|
||||
|
||||
int QtsSpecialTestFont = -1;
|
||||
int QtBidiTestFont = -1;
|
||||
@ -159,7 +160,7 @@ void tst_QFontEngine::setupApplication()
|
||||
}
|
||||
|
||||
theArguments = arguments;
|
||||
int argc = arguments.size();
|
||||
argc = arguments.size();
|
||||
theApp = std::make_unique<QGuiApplication>(argc, const_cast<char **>(theArguments.data()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user