Skip to content

Commit 87c4b9c

Browse files
Fix compilation warning.
1 parent 524444f commit 87c4b9c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/sot/core/feature-pose.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void FeaturePose<representation>::display(std::ostream &os) const {
335335
os << featureNames[i];
336336
}
337337
os << ") ";
338-
} catch (ExceptionAbstract e) {
338+
} catch (const ExceptionAbstract& e) {
339339
os << " selectSIN not set.";
340340
}
341341
}

src/feature/feature-1d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void Feature1D::display(std::ostream &os) const {
9393
try {
9494
os << " error= " << errorSIN.accessCopy() << endl
9595
<< " J = " << jacobianSIN.accessCopy() << endl;
96-
} catch (ExceptionAbstract e) {
96+
} catch (const ExceptionAbstract &e) {
9797
os << " All SIN not set.";
9898
}
9999
}

src/feature/feature-visual-point.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ void FeatureVisualPoint::display(std::ostream &os) const {
167167
const Flags &fl = selectionSIN.accessCopy();
168168
if (fl(0)) os << " x=" << xy(0);
169169
if (fl(1)) os << " y=" << xy(1);
170-
} catch (ExceptionAbstract e) {
170+
} catch (const ExceptionAbstract &e) {
171171
os << " XY or select not set.";
172172
}
173173

174174
try {
175175
const double &z = ZSIN.accessCopy();
176176
os << " Z=" << z << " ";
177-
} catch (ExceptionAbstract e) {
177+
} catch (const ExceptionAbstract &e) {
178178
os << " Z not set.";
179179
}
180180
}

src/task/gain-hyperbolic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void GainHyperbolic::display(std::ostream &os) const {
8383
os << "Gain Hyperbolic " << getName();
8484
try {
8585
os << " = " << double(gainSOUT.accessCopy());
86-
} catch (ExceptionSignal e) {
86+
} catch (const ExceptionSignal &e) {
8787
}
8888
// os <<" ("<<coeff_a<<";"<<coeff_b<<";"<<coeff_c<<coeff_d<<") ";
8989
os << " (" << coeff_a << ".exp(-" << coeff_b << "(x-" << coeff_d << "))+"

0 commit comments

Comments
 (0)