mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Tweak copy constructors to fix build errors in CentOS.
Thanks to johanfh. Fixes #19.
This commit is contained in:
parent
da60a5aa99
commit
47ea2bbf91
@ -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() {}
|
||||
|
||||
|
@ -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) {}
|
||||
|
@ -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) {}
|
||||
|
||||
|
@ -43,7 +43,7 @@ class Update
|
||||
*/
|
||||
struct Release {
|
||||
Release() {}
|
||||
Release(const Release ©) = 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;
|
||||
|
Loading…
Reference in New Issue
Block a user