Ignore:
Timestamp:
09/17/13 13:51:02 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing cppcheck errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/Shp2Expx/Shp2Expx.cpp

    r15164 r16149  
    1212        #ifdef _HAVE_SHAPELIB_ //only works if Shapelib library has been compiled in.
    1313
    14         return(Shp2Expx(filshp,filexp,
    15                                         0));
     14        return(Shp2Expx(filshp,filexp,0));
    1615
    1716        #else //ifdef _HAVE_SHAPELIB_
     
    2019}
    2120
    22 int Shp2Expx(char* filshp,char* filexp,
    23                          int sgn){
     21int Shp2Expx(char* filshp,char* filexp,int sgn){
    2422
    2523        #ifdef _HAVE_SHAPELIB_ //only works if Shapelib library has been compiled in.
    2624
    2725        double  cm,sp;
    28 
    29         if (sgn)
    30                 Xy2lldef(&cm,&sp,sgn);
    31 
    32         return(Shp2Expx(filshp,filexp,
    33                                         sgn,cm,sp));
     26        Xy2lldef(&cm,&sp,sgn);
     27
     28        return(Shp2Expx(filshp,filexp,sgn,cm,sp));
    3429
    3530        #else //ifdef _HAVE_SHAPELIB_
     
    3833}
    3934
    40 int Shp2Expx(char* filshp,char* filexp,
    41                          int sgn,double cm,double sp){
     35int Shp2Expx(char* filshp,char* filexp,int sgn,double cm,double sp){
    4236
    4337        #ifdef _HAVE_SHAPELIB_ //only works if Shapelib library has been compiled in.
Note: See TracChangeset for help on using the changeset viewer.