diff --git a/components/SpectralComponents/GaussianMultipletSpectralElement.cc b/components/SpectralComponents/GaussianMultipletSpectralElement.cc index 17b9bca..d455e54 100644 --- a/components/SpectralComponents/GaussianMultipletSpectralElement.cc +++ b/components/SpectralComponents/GaussianMultipletSpectralElement.cc @@ -317,7 +317,7 @@ ostream &operator<<(ostream& os, const GaussianMultipletSpectralElement& elem) { os << SpectralElement::fromType((elem.getType())) << " element: " << endl; os << " Function: " << elem.getFunction() << endl; os << " Gaussians:" << endl; - Vector gaussians = elem.getGaussians(); + const std::vector gaussians = elem.getGaussians(); for (uInt i=0; i(3)) { +) : SpectralElement(type, Vector(3)) { _initFunction(); setAmpl(amp); setCenter(center); diff --git a/synthesis/MeasurementComponents/KJones.cc b/synthesis/MeasurementComponents/KJones.cc index 15fe22d..3719f39 100644 --- a/synthesis/MeasurementComponents/KJones.cc +++ b/synthesis/MeasurementComponents/KJones.cc @@ -979,7 +979,7 @@ void KAntPosJones::calcAllJones() { mb.set(mvb,mbearthref); // A converter that takes the MBaseline from earth to sky frame - MBaseline::Ref mbskyref(MBaseline::fromDirType(MDirection::castType(phasedir.myType()))); + MBaseline::Ref mbskyref(MBaseline::fromDirType(MDirection::castType(phasedir.getRef().getType()))); MBaseline::Convert mbcverter(mb,mbskyref); diff --git a/synthesis/MeasurementEquations/Imager2.cc b/synthesis/MeasurementEquations/Imager2.cc index a416999..c6cd902 100644 --- a/synthesis/MeasurementEquations/Imager2.cc +++ b/synthesis/MeasurementEquations/Imager2.cc @@ -4476,7 +4476,7 @@ Bool Imager::calcImFreqs(Vector& imgridfreqs, std::vector stlimgridfreqs; imgridfreqs.tovector(stlimgridfreqs); std::reverse(stlimgridfreqs.begin(),stlimgridfreqs.end()); - imgridfreqs=stlimgridfreqs; + imgridfreqs=Vector(stlimgridfreqs); } //cerr<<"Final imgridfreqs(0)="<