Source
xxxxxxxxxx
215
215
return compErrors;
216
216
}
217
217
218
218
Vector<Double> TwoSidedShape::optParameters() const {
219
219
DebugAssert(ok(), AipsError);
220
220
return Vector<Double>(0);
221
221
}
222
222
223
223
void TwoSidedShape::setOptParameters(const Vector<Double>& newOptParms){
224
224
DebugAssert(ok(), AipsError);
225
-
if (&newOptParms == 0) {};
225
+
// squash compiler warning, maybe just get rid of DebugAssert statement
226
+
if (newOptParms.empty()) {};
226
227
}
227
228
228
229
Bool TwoSidedShape::fromRecord(String& errorMessage,
229
230
const RecordInterface& record) {
230
231
if (!ComponentShape::fromRecord(errorMessage, record)) return false;
231
232
Quantum<Double> majorAxis, minorAxis, pa;
232
233
if (!fromAngQRecord(majorAxis, errorMessage, "majoraxis", record) ||
233
234
!fromAngQRecord(minorAxis, errorMessage, "minoraxis", record) ||
234
235
!fromAngQRecord(pa, errorMessage, "positionangle", record)) {
235
236
errorMessage += "Shape not changed\n";