Skip to content

Commit

Permalink
Merge pull request #13 from jjdmol/master
Browse files Browse the repository at this point in the history
C++11 fixes
  • Loading branch information
tammojan authored Jun 18, 2016
2 parents 7da9387 + b574210 commit 0161036
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion synthesis/MeasurementComponents/AWProjectFT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ namespace casa { //# NAMESPACE CASA - BEGIN
//---------------------------------------------------------------
//
// This is nasty, we should use CountedPointers here.
AWProjectFT::~AWProjectFT()
AWProjectFT::~AWProjectFT() CASAREST_NOEXCEPT
{
if(imageCache) delete imageCache; imageCache=0;
if(gridder) delete gridder; gridder=0;
Expand Down
4 changes: 2 additions & 2 deletions synthesis/MeasurementComponents/Utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ namespace casa{
IPosition ndx(3,0);
Int N = vb.nRow();
for(ndx(2)=0;ndx(2)<N;ndx(2)++)
if (isnan(vb.modelVisCube()(ndx).real()) ||
isnan(vb.modelVisCube()(ndx).imag())
if (std::isnan(vb.modelVisCube()(ndx).real()) ||
std::isnan(vb.modelVisCube()(ndx).imag())
)
{
ostringstream os;
Expand Down
2 changes: 1 addition & 1 deletion synthesis/MeasurementComponents/nPBWProjectFT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ namespace casa { //# NAMESPACE CASA - BEGIN
//---------------------------------------------------------------
//
// This is nasty, we should use CountedPointers here.
nPBWProjectFT::~nPBWProjectFT()
nPBWProjectFT::~nPBWProjectFT() CASAREST_NOEXCEPT
{
if(imageCache) delete imageCache; imageCache=0;
if(gridder) delete gridder; gridder=0;
Expand Down

0 comments on commit 0161036

Please sign in to comment.