Skip to content

Commit

Permalink
#2521 Added asignment operator with noexcept keyword to GenesisEventInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed May 11, 2023
1 parent 0417e8a commit ba80c23
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/libcode/vx_tc_util/genesis_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ bool GenesisEventInfo::is_genesis(const TrackPoint &p) const {
return(status);
}

////////////////////////////////////////////////////////////////////////

GenesisEventInfo &GenesisEventInfo::operator=(const GenesisEventInfo &a) noexcept {
if ( this != &a ) {
Technique = a.Technique;
Category = a.Category;
VMaxThresh = a.VMaxThresh;
MSLPThresh = a.MSLPThresh;
}
return *this;
}


////////////////////////////////////////////////////////////////////////

GenesisEventInfo parse_conf_genesis_event_info(Dictionary *dict) {
Expand Down
1 change: 1 addition & 0 deletions src/libcode/vx_tc_util/genesis_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct GenesisEventInfo {

bool is_genesis(const TrackPoint &) const;
void clear();
GenesisEventInfo &operator=(const GenesisEventInfo &a) noexcept;
};

extern GenesisEventInfo parse_conf_genesis_event_info(Dictionary *dict);
Expand Down

0 comments on commit ba80c23

Please sign in to comment.