diff --git a/ChangeLog b/ChangeLog index 5cb8be75..4ccd0cf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21369,3 +21369,7 @@ * Added a workaround to 'RDCart::updateLength()' to prevent invalid data values from being written to the 'CART.MINIMUM_TALK_LENGTH' field. +2021-04-05 Fred Gleason + * Cleaned up compilation warnings in rddbmgr(8). + * Rebased rddbmgr(8) to use 'QCoreApplication' rather than + 'QApplication'. diff --git a/utils/rddbmgr/rddbmgr.cpp b/utils/rddbmgr/rddbmgr.cpp index 00d9235f..9cfaa30d 100644 --- a/utils/rddbmgr/rddbmgr.cpp +++ b/utils/rddbmgr/rddbmgr.cpp @@ -2,7 +2,7 @@ // // Rivendell database management utility // -// (C) Copyright 2018 Fred Gleason +// (C) Copyright 2018-2021 Fred Gleason // // 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 @@ -23,11 +23,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -469,7 +469,7 @@ bool MainObject::DropIndex(const QString &tbl_name,const QString &idx_name, int main(int argc,char *argv[]) { - QApplication a(argc,argv,false); + QCoreApplication a(argc,argv); new MainObject(); return a.exec(); diff --git a/utils/rddbmgr/rddbmgr.h b/utils/rddbmgr/rddbmgr.h index 5f9e5f38..4a79aed3 100644 --- a/utils/rddbmgr/rddbmgr.h +++ b/utils/rddbmgr/rddbmgr.h @@ -2,7 +2,7 @@ // // Rivendell database management utility // -// (C) Copyright 2018-2020 Fred Gleason +// (C) Copyright 2018-2021 Fred Gleason // // 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 @@ -21,7 +21,7 @@ #ifndef RDDBMGR_H #define RDDBMGR_H -#include +#include #include #include diff --git a/utils/rddbmgr/revertschema.cpp b/utils/rddbmgr/revertschema.cpp index 5b204caf..4ef3d2c3 100644 --- a/utils/rddbmgr/revertschema.cpp +++ b/utils/rddbmgr/revertschema.cpp @@ -371,7 +371,7 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg) } else { sql=QString("update PODCASTS set ")+ - QString().sprintf("SHELF_LIFE=%d where ", + QString().sprintf("SHELF_LIFE=%lld where ", q->value(1).toDateTime(). daysTo(q->value(2).toDateTime()))+ QString().sprintf("ID=%u",q->value(0).toUInt());