mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
2021-01-20 Fred Gleason <fredg@paravelsystems.com>
* Split the 'RDApplication' class into the base class 'RDCoreApplication' and 'RDApplication'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Display charset/collation parameters for a DB connection
|
||||
//
|
||||
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -46,8 +46,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Open the Database
|
||||
//
|
||||
rda=new RDApplication("db_charset_test","rdvairplayd",DB_CHARSET_TEST_USAGE,
|
||||
this);
|
||||
rda=static_cast<RDApplication *>(new RDApplication("db_charset_test","rdvairplayd",DB_CHARSET_TEST_USAGE,this));
|
||||
if(!rda->open(&err_msg)) {
|
||||
fprintf(stderr,"db_charset_test: %s\n",(const char *)err_msg);
|
||||
exit(1);
|
||||
@@ -75,7 +74,7 @@ MainObject::MainObject(QObject *parent)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication a(argc,argv,false);
|
||||
QCoreApplication a(argc,argv,false);
|
||||
|
||||
MainObject();
|
||||
return a.exec();
|
||||
|
||||
Reference in New Issue
Block a user