mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-03-06 14:35:27 +01:00
2021-02-04 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDDiscModel' * Refactored the full disc ripper in rdlibrary(1) to use the model-based API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Abstract a Rivendell Group.
|
||||
//
|
||||
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-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
|
||||
@@ -292,9 +292,9 @@ int RDGroup::freeCartQuantity() const
|
||||
return free;
|
||||
}
|
||||
|
||||
bool RDGroup::reserveCarts(std::vector<unsigned> *cart_nums,
|
||||
bool RDGroup::reserveCarts(QList<unsigned> *cart_nums,
|
||||
const QString &station_name,RDCart::Type type,
|
||||
unsigned quan) const
|
||||
int quan) const
|
||||
{
|
||||
unsigned next;
|
||||
QString sql;
|
||||
@@ -310,7 +310,7 @@ bool RDGroup::reserveCarts(std::vector<unsigned> *cart_nums,
|
||||
next++;
|
||||
}
|
||||
else {
|
||||
for(unsigned i=0;i<cart_nums->size();i++) {
|
||||
for(int i=0;i<cart_nums->size();i++) {
|
||||
sql=QString().sprintf("delete from CART where NUMBER=%u",
|
||||
cart_nums->at(i));
|
||||
q=new RDSqlQuery(sql);
|
||||
|
||||
Reference in New Issue
Block a user