1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-29 08:52:19 +00:00

Rationalize some std::exception stuff.

This commit is contained in:
Arthur O'Dwyer
2021-03-21 17:56:38 -04:00
parent 4c10b17b7e
commit 1761b02b90
8 changed files with 32 additions and 34 deletions

View File

@@ -600,7 +600,7 @@ EX void buildRug() {
else if(v > w && v > w2)
addTriangle(v, w, w2);
}
catch(out_of_range&) {}
catch(const std::out_of_range&) {}
}
println(hlog, "vertices = ", isize(points), " triangles= ", isize(triangles));
@@ -1218,7 +1218,7 @@ EX void init_model() {
"Use a different projection to fix this."
);
}
catch(rug_exception) {
catch(const rug_exception&) {
close();
clear_model();
}
@@ -1353,7 +1353,7 @@ EX void actDraw() {
perform_finger();
#endif
}
catch(rug_exception) {
catch(const rug_exception&) {
rug::close();
}
}