[Positioning] Stock::in_which_area_is(): ref param
Fix a typo in the header of Stock::in_which_area_is() to pass the argument as a reference.
This commit is contained in:
parent
141515b5db
commit
bfc09fdbe6
|
@ -87,7 +87,7 @@ const Building& Stock::get_building(const string &name)
|
|||
* @returns A pointer to the first Area in which \em point was found.
|
||||
* @returns NULL if \em point does not belong to any Area.
|
||||
*/
|
||||
const Area* Stock::in_which_area_is(const Point3D point)
|
||||
const Area* Stock::in_which_area_is(const Point3D &point)
|
||||
{
|
||||
for (unordered_map<string, Building>::const_iterator
|
||||
b = buildings.begin() ; b != buildings.end() ; ++b)
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
/// Searches for a Building and creates it if it does not exist
|
||||
static const Building& find_create_building(const std::string &name) ;
|
||||
/// Searches the Area in which \em point is
|
||||
static const Area* in_which_area_is(const Point3D point) ;
|
||||
static const Area* in_which_area_is(const Point3D &point) ;
|
||||
//@}
|
||||
|
||||
/** @name Waypoint operations */
|
||||
|
|
Loading…
Reference in New Issue