diff --git a/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.cc b/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.cc index 017a1ae22..b86107078 100644 --- a/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.cc +++ b/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.cc @@ -81,7 +81,7 @@ VarInfo *VarInfoNcCF::clone() const { VarInfoNcCF *ret = new VarInfoNcCF(*this); - return (VarInfo *)ret; + return ret; } /////////////////////////////////////////////////////////////////////////////// @@ -99,14 +99,13 @@ void VarInfoNcCF::init_from_scratch() { /////////////////////////////////////////////////////////////////////////////// void VarInfoNcCF::assign(const VarInfoNcCF &v) { - int i; // First call the parent's assign VarInfo::assign(v); // Copy clear_dimension(); - for(i=0; i " diff --git a/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.h b/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.h index 439369d95..8fee4ead2 100644 --- a/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.h +++ b/src/libcode/vx_data2d_nc_cf/var_info_nc_cf.h @@ -88,7 +88,7 @@ class VarInfoNcCF : public VarInfo inline GrdFileType VarInfoNcCF::file_type() const { return FileType_NcCF; } inline const LongArray & VarInfoNcCF::dimension() const { return Dimension; } -inline int VarInfoNcCF::dimension(int i) const { return Dimension[i]; } +inline int VarInfoNcCF::dimension(int i) const { return (int) Dimension[i]; } inline int VarInfoNcCF::n_dimension() const { return Dimension.n_elements();} inline const NumArray & VarInfoNcCF::dim_value() const { return Dim_value; } inline double VarInfoNcCF::dim_value(int i) const { return Dim_value[i]; }