[Positioner] Fix two catches (catch by reference)

This commit is contained in:
Matteo Cypriani 2014-02-18 11:47:58 -05:00
parent f7194dce71
commit 5ddcdeed2f
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void AutocalibrationLine::generate_ss()
{ {
trx_rp = &Stock::get_reference_point(trx_cp->get_coordinates()) ; trx_rp = &Stock::get_reference_point(trx_cp->get_coordinates()) ;
} }
catch (element_not_found e) catch (element_not_found &e)
{ {
ostringstream oss ; ostringstream oss ;
oss << "No measurements from transmitter CP " oss << "No measurements from transmitter CP "

View File

@ -72,7 +72,7 @@ void TopologyReaderCSV::process_area_line()
{ {
building.add_area(area) ; building.add_area(area) ;
} }
catch (element_already_exists e) catch (element_already_exists &e)
{ {
delete area ; delete area ;
} }