mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 10:20:17 -06:00
Merge pull request #185 from pinotree/tests-fix-qcoreapp
tests: fix QCoreApplication parameters
This commit is contained in:
@@ -14,9 +14,9 @@ TestImport::TestImport()
|
||||
// Init basic application
|
||||
// The app needs to be initialized for the utf8 test
|
||||
// to work
|
||||
int argcount = 1;
|
||||
const char* appname = "sqlb-unittests";
|
||||
app = new QCoreApplication(argcount, const_cast<char**>(&appname));
|
||||
argcount = 1;
|
||||
args[0] = "sqlb-unittests";
|
||||
app = new QCoreApplication(argcount, args);
|
||||
}
|
||||
|
||||
TestImport::~TestImport()
|
||||
|
||||
@@ -13,6 +13,8 @@ public:
|
||||
~TestImport();
|
||||
|
||||
private:
|
||||
int argcount;
|
||||
char *args[1]; // the size must match what 'argcount' is set to
|
||||
QCoreApplication* app;
|
||||
|
||||
private slots:
|
||||
|
||||
Reference in New Issue
Block a user