[Positioning] Correct some coding style issues
Get rid of some cppcheck warnings.
This commit is contained in:
parent
b21b7bd25f
commit
cf42098cbd
|
@ -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 ;
|
||||
|
|
|
@ -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) ;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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) {}
|
||||
|
|
|
@ -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 ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue