Source
101
101
102
102
String dirTypeString = MDirection::showType(
103
103
csys.directionCoordinate().directionType(false)
104
104
);
105
105
try {
106
106
AnnSymbol symbol(
107
107
x, y, csys, AnnSymbol::charToSymbol(c),
108
108
Vector<Stokes::StokesTypes>(0)
109
109
);
110
110
thrown = false;
111
-
} catch (AipsError x) {
111
+
} catch (const AipsError& x) {
112
112
log << LogIO::NORMAL
113
113
<< "Exception thrown as expected: "
114
114
<< x.getMesg() << LogIO::POST;
115
115
}
116
116
AlwaysAssert(thrown, AipsError);
117
117
}
118
118
{
119
119
log << LogIO::NORMAL
120
120
<< "Test coordinates with no conversion"
121
121
<< LogIO::POST;
203
203
<< "Test label offset parsing (CAS-4358)"
204
204
<< LogIO::POST;
205
205
vector<Int> offset(2);
206
206
offset[0] = -1;
207
207
offset[1] = 4;
208
208
symbol.setLabelOffset(offset);
209
209
AlwaysAssert(symbol.getLabelOffset() == offset, AipsError);
210
210
cout << symbol << endl;
211
211
212
212
}
213
-
} catch (AipsError x) {
213
+
} catch (const AipsError& x) {
214
214
log << LogIO::SEVERE
215
215
<< "Caught exception: " << x.getMesg()
216
216
<< LogIO::POST;
217
217
return 1;
218
218
}
219
219
220
220
cout << "OK" << endl;
221
221
return 0;
222
222
}