[Positioning] Correct some coding style issues

Get rid of some cppcheck warnings.
This commit is contained in:
Matteo Cypriani 2010-06-22 09:34:17 +02:00
parent b21b7bd25f
commit cf42098cbd
5 changed files with 9 additions and 9 deletions

View File

@ -27,11 +27,8 @@ CSVFileReader::~CSVFileReader()
*/
bool CSVFileReader::next_line()
{
if (current_token != NULL)
{
delete current_token ;
current_token = NULL ;
}
delete current_token ;
current_token = NULL ;
if (! read_nonblank_line(current_line))
return false ;

View File

@ -25,7 +25,7 @@ public:
CSVFileReader(const std::string &filename,
const char _separator = ';'):
TextFileReader(filename), separator(_separator),
current_token(NULL) {}
current_token(NULL), current_field_nb(0) {}
virtual ~CSVFileReader(void) ;

View File

@ -9,10 +9,11 @@ class FRBHMBasic: public FBCM, public RADAR
{
protected:
ReferencePoint const *closest_in_ss ;
float friis_index(const AccessPoint *const ap) const ;
public:
FRBHMBasic(void) {}
FRBHMBasic(void): closest_in_ss(NULL) {}
~FRBHMBasic(void) {}
/** @name Operations */

View File

@ -25,6 +25,7 @@ public:
MinMax(const Point3D &_start,
const Point3D &_stop,
const float _step = MINMAX_DEFAULT_STEP):
min(INFINITE),
start(_start), stop(_stop), step(_step) {}
~MinMax(void) {}

View File

@ -121,8 +121,9 @@ inline void Request::set_time_sent(const Timestamp &_time_sent)
}
inline void Request::set_measurements(const std::tr1::unordered_map
<std::string, Measurement> &_measurements)
inline void Request::
set_measurements(const std::tr1::unordered_map<std::string, Measurement>
&_measurements)
{
measurements = _measurements ;
}