Skip to content
Snippets Groups Projects
Commit c6bc267e authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix slicing when catching exceptions

parent 723afeec
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ bool CIntensityGraph::read(istream& infile)
}
}
catch (istream::failure e)
catch (istream::failure&)
{
printf("ERROR: failed to write FeatureGraph to file\n");
return false;
......@@ -229,7 +229,7 @@ bool CIntensityGraph::write(ostream& outfile)
}
}
catch (ostream::failure e)
catch (ostream::failure&)
{
printf("ERROR: failed to write FeatureGraph to file\n");
return false;
......
......@@ -207,7 +207,7 @@ bool CSphericalGraph::read(istream& infile)
}
}
catch (istream::failure e)
catch (istream::failure&)
{
printf("ERROR: failed to write FeatureGraph to file\n");
return false;
......@@ -279,7 +279,7 @@ bool CSphericalGraph::write(ostream& outfile)
}
}
catch (ostream::failure e)
catch (ostream::failure&)
{
printf("ERROR: failed to write FeatureGraph to file\n");
return false;
......
......@@ -199,7 +199,7 @@ void WeissHapticSensor::frameAcquisitionTaskLoop()
lastFrameTime = now;
}
}
catch (ChecksumErrorException)
catch (ChecksumErrorException&)
{
ARMARX_WARNING << "Caught ChecksumErrorException on " << device << ", skipping frame";
}
......
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