[Positioning] ReferencePoint: variable renaming

This commit is contained in:
Matteo Cypriani 2011-07-22 10:04:32 +02:00
parent 0d160f8b23
commit 602f9c5399
1 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ public:
/** @name Write accessors */ /** @name Write accessors */
//@{ //@{
/// Adds a Request to the \link #requests request list\endlink /// Adds a Request to the \link #requests request list\endlink
void add_request(const CalibrationRequest *cm) ; void add_request(const CalibrationRequest *r) ;
/// Deletes all the requests contained in #requests /// Deletes all the requests contained in #requests
void delete_requests(void) ; void delete_requests(void) ;
/// Deletes the requests that are not sent by an AP /// Deletes the requests that are not sent by an AP
@ -104,16 +104,16 @@ std::vector<CalibrationRequest*>& ReferencePoint::get_requests() const
/** /**
* @param cm A pointer to the CalibrationRequest to add. If it is * @param r A pointer to the CalibrationRequest to add. If it is
* NULL, nothing will be done. * NULL, nothing will be done.
* The memory pointed by this pointer must not be deallocated before * The memory pointed by this pointer must not be deallocated before
* the ReferencePoint destruction (do \em not pass a pointer to a local * the ReferencePoint destruction (do \em not pass a pointer to a local
* variable!). * variable!).
*/ */
inline void ReferencePoint::add_request(const CalibrationRequest *cm) inline void ReferencePoint::add_request(const CalibrationRequest *r)
{ {
if (cm != NULL) if (r != NULL)
requests.push_back(const_cast<CalibrationRequest*>(cm)) ; requests.push_back(const_cast<CalibrationRequest*>(r)) ;
} }