diff options
author | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
commit | 087b9bb7c3462894acd5d527f32c4b43bedf6fdb (patch) | |
tree | 236093cb5760e0577961594835c40b194be1e446 /src/dxfdata.cc | |
parent | 750e1f9f649e0908bf1d89c9e31d61ef0f56fe7f (diff) |
Catch exceptions as const references. Related to #204
Diffstat (limited to 'src/dxfdata.cc')
-rw-r--r-- | src/dxfdata.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxfdata.cc b/src/dxfdata.cc index 4258a4c..2fd40ab 100644 --- a/src/dxfdata.cc +++ b/src/dxfdata.cc @@ -141,7 +141,7 @@ DxfData::DxfData(double fn, double fs, double fa, try { id = boost::lexical_cast<int>(id_str); } - catch (boost::bad_lexical_cast &blc) { + catch (const boost::bad_lexical_cast &blc) { if (!stream.eof()) { PRINTB("WARNING: Illegal ID '%s' in `%s'", id_str % filename); } |