mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Added default copy operators as implicit default is deprecated
This commit is contained in:
parent
036117d41d
commit
d54e8b2e11
@ -277,6 +277,8 @@ struct SelectionHistoryItem {
|
|||||||
}
|
}
|
||||||
quint64 minx;
|
quint64 minx;
|
||||||
quint64 maxx;
|
quint64 maxx;
|
||||||
|
|
||||||
|
SelectionHistoryItem& operator=(const SelectionHistoryItem& other) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
class MyDockWindow:public QMainWindow
|
class MyDockWindow:public QMainWindow
|
||||||
|
@ -53,6 +53,8 @@ public:
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DottedLine& operator=(const DottedLine& other) = default;
|
||||||
|
|
||||||
ChannelID code;
|
ChannelID code;
|
||||||
ChannelCalcType type;
|
ChannelCalcType type;
|
||||||
EventDataType value;
|
EventDataType value;
|
||||||
|
@ -42,6 +42,7 @@ public:
|
|||||||
end = copy.end;
|
end = copy.end;
|
||||||
status = copy.status;
|
status = copy.status;
|
||||||
}
|
}
|
||||||
|
SessionSlice& operator=(const SessionSlice& other) = default;
|
||||||
SessionSlice(qint64 start, qint64 end, SliceStatus status):start(start), end(end), status(status) {}
|
SessionSlice(qint64 start, qint64 end, SliceStatus status):start(start), end(end), status(status) {}
|
||||||
|
|
||||||
qint64 start;
|
qint64 start;
|
||||||
|
@ -128,6 +128,7 @@ public:
|
|||||||
dates = copy.dates;
|
dates = copy.dates;
|
||||||
highlight = copy.highlight;
|
highlight = copy.highlight;
|
||||||
}
|
}
|
||||||
|
RXItem& operator=(const RXItem& other) = default;
|
||||||
inline quint64 count(ChannelID id) const {
|
inline quint64 count(ChannelID id) const {
|
||||||
QHash<ChannelID, quint64>::const_iterator it = s_count.find(id);
|
QHash<ChannelID, quint64>::const_iterator it = s_count.find(id);
|
||||||
if (it == s_count.end()) return 0;
|
if (it == s_count.end()) return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user