CPP generator test, catching exceptions by ref instead.

This commit is contained in:
David Carlier 2019-06-14 13:01:31 +00:00 committed by James E. King III
parent 3f0d444791
commit 29ecfaba53

View File

@ -98,7 +98,7 @@ Event EventLog::waitForEvent(int64_t timeout) {
while (events_.empty()) {
monitor_.wait(timeout);
}
} catch (TimedOutException ex) {
} catch (const TimedOutException &) {
return Event(ET_LOG_END, 0, 0, "");
}
@ -119,7 +119,7 @@ Event EventLog::waitForConnEvent(uint32_t connId, int64_t timeout) {
while (it == events_.end()) {
monitor_.wait(timeout);
}
} catch (TimedOutException ex) {
} catch (const TimedOutException &) {
return Event(ET_LOG_END, 0, 0, "");
}