Tweak copy constructors to fix build errors in CentOS.

Thanks to johanfh.

Fixes #19.
This commit is contained in:
sawinglogz 2020-05-23 11:22:59 -04:00
parent da60a5aa99
commit 47ea2bbf91
4 changed files with 6 additions and 6 deletions

View File

@ -145,7 +145,7 @@ public:
date=QDate();
}
STRRecord(const STRRecord & copy) = default;
STRRecord(const STRRecord & /*copy*/) = default;
// All the data members
@ -232,7 +232,7 @@ public:
filename(QString()), days(0), edf(nullptr) {}
STRFile(QString name, long int recCnt, ResMedEDFInfo *str) :
filename(name), days(recCnt), edf(str) {}
STRFile(const STRFile & copy) = default;
STRFile(const STRFile & /*copy*/) = default;
virtual ~STRFile() {}

View File

@ -109,7 +109,7 @@ enum PRTimeModes { //:short
struct MachineInfo {
MachineInfo() { type = MT_UNKNOWN; version = 0; cap=0; }
MachineInfo(const MachineInfo & copy) = default;
MachineInfo(const MachineInfo & /*copy*/) = default;
MachineInfo(MachineType type, quint32 cap, QString loadername, QString brand, QString model, QString modelnumber, QString serial, QString series, QDateTime lastimported, int version) :
type(type), cap(cap), loadername(loadername), brand(brand), model(model), modelnumber(modelnumber), serial(serial), series(series), lastimported(lastimported), version(version) {}

View File

@ -27,7 +27,7 @@ public:
color = Qt::black;
type = Calc_Zero;
}
ChannelCalc(const ChannelCalc & copy) = default;
ChannelCalc(const ChannelCalc & /*copy*/) = default;
ChannelCalc(ChannelID code, ChannelCalcType type, QColor color, bool enabled):
code(code), type(type), color(color), enabled(enabled) {}

View File

@ -43,7 +43,7 @@ class Update
*/
struct Release {
Release() {}
Release(const Release &copy) = default;
Release(const Release & /*copy*/) = default;
Release(QString ver, QString code, UpdateStatus stat) { version = ver; codename = code; status = stat; }
QString version;
@ -87,7 +87,7 @@ class UpdateParser: public QXmlDefaultHandler
class PackageUpdate {
public:
PackageUpdate() {}
PackageUpdate(const PackageUpdate & copy) = default;
PackageUpdate(const PackageUpdate & /*copy*/) = default;
QString name;
QString displayName;