Code Cleanup
- Removed unnecessary use of the scope resolution operator.
This commit is contained in:
@@ -326,7 +326,7 @@ Grid::Cell::operator int () const
|
||||
case CELL_INT: return mInt;
|
||||
case CELL_FLOAT: return (int) mFloat;
|
||||
case CELL_DOUBLE: return (int) mDouble;
|
||||
case CELL_STRING: return ::atoi (mString.c_str ());
|
||||
case CELL_STRING: return atoi (mString.c_str ());
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -341,7 +341,7 @@ Grid::Cell::operator float () const
|
||||
case CELL_INT: return (float) mInt;
|
||||
case CELL_FLOAT: return mFloat;
|
||||
case CELL_DOUBLE: return (float) mDouble;
|
||||
case CELL_STRING: return (float) ::atof (mString.c_str ());
|
||||
case CELL_STRING: return (float) atof (mString.c_str ());
|
||||
}
|
||||
|
||||
return 0.0;
|
||||
@@ -356,7 +356,7 @@ Grid::Cell::operator double () const
|
||||
case CELL_INT: return (double) mInt;
|
||||
case CELL_FLOAT: return (double) mFloat;
|
||||
case CELL_DOUBLE: return mDouble;
|
||||
case CELL_STRING: return (double) ::atof (mString.c_str ());
|
||||
case CELL_STRING: return (double) atof (mString.c_str ());
|
||||
}
|
||||
|
||||
return 0.0;
|
||||
|
||||
Reference in New Issue
Block a user