Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
GCC complained about "catching polymorphic type[s] by value".  Thanks to
ead790c I could spot this now.
  • Loading branch information
meribold committed Nov 17, 2018
1 parent ead790c commit d583f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ibidi_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ void ibidiExport(const std::string& fileName,
try {
index = std::stoi(trackeeID);
}
catch (std::invalid_argument) {
catch (const std::invalid_argument&) {
badTrackees += trackeeID + ", ";
continue;
}
catch (std::out_of_range) {
catch (const std::out_of_range&) {
badTrackees += trackeeID + ", ";
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/trackee_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ void TrackeeBox::suggestId()
indices.push_back(unsigned(index));
}
}
catch (std::invalid_argument) {
catch (const std::invalid_argument&) {

}
catch (std::out_of_range) {
catch (const std::out_of_range&) {

}
}
Expand Down

0 comments on commit d583f40

Please sign in to comment.