[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:
Matteo Cypriani 2011-07-30 20:44:25 +02:00
parent 141515b5db
commit bfc09fdbe6
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 */