Skip to content
Snippets Groups Projects
Commit 8530ca51 authored by Arnaud Billon's avatar Arnaud Billon :speech_balloon:
Browse files

[LidarPlugin][fix] Catch exception by reference

parent a368de3a
No related branches found
No related tags found
1 merge request!260Upgrade PV5.9
......@@ -67,7 +67,7 @@ void lqLoadLidarStateReaction::LoadLidarState(vtkSMProxy * lidarCurrentProxy)
{
file >> contents;
}
catch(std::exception e)
catch(std::exception& e)
{
QMessageBox::warning(nullptr, tr(""), tr("Json file not valid") );
return;
......@@ -79,7 +79,7 @@ void lqLoadLidarStateReaction::LoadLidarState(vtkSMProxy * lidarCurrentProxy)
{
ParseJsonContent(contents, "",propertyInfo);
}
catch(std::exception e)
catch(std::exception& e)
{
QMessageBox::warning(nullptr, tr(""), tr("Error when parsing json information") );
return;
......
......@@ -86,7 +86,7 @@ PacketReceiver::PacketReceiver(int port,
vtkGenericWarningMacro("Listening on " << listen_address.to_string() << " local IP, with multicast group " << multicast_address.to_string() << " ONLY.");
}
catch(std::exception e)
catch(std::exception& e)
{
vtkGenericWarningMacro("Error while setting listening address for multicast, please correct it or leave empty to listen on all local ip addresses");
}
......@@ -132,7 +132,7 @@ PacketReceiver::PacketReceiver(int port,
// Bind the socket to listen address (specific or INADDR_ANY) and to the defined port
this->Socket.bind(boost::asio::ip::udp::endpoint(listen_address, port));
}
catch(std::exception e)
catch(std::exception& e)
{
vtkGenericWarningMacro("Error while setting listening address, please correct it or leave empty to ignore");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment