src/AIModel/: fixed warnings about use of const with no affect.
This commit is contained in:
parent
001c1d231d
commit
778c81a9b5
3 changed files with 7 additions and 7 deletions
|
@ -348,7 +348,7 @@ public:
|
|||
|
||||
const std::string& getCallSign() const
|
||||
{ return _callsign; }
|
||||
const ModelSearchOrder getSearchOrder() const {return _searchOrder;}
|
||||
ModelSearchOrder getSearchOrder() const {return _searchOrder;}
|
||||
};
|
||||
|
||||
typedef SGSharedPtr<FGAIBase> FGAIBasePtr;
|
||||
|
|
|
@ -264,7 +264,7 @@ bool FGAIFlightPlan::parseProperties(const std::string& filename)
|
|||
return true;
|
||||
}
|
||||
|
||||
FGAIWaypoint* const FGAIFlightPlan::getPreviousWaypoint( void ) const
|
||||
FGAIWaypoint* FGAIFlightPlan::getPreviousWaypoint( void ) const
|
||||
{
|
||||
if (wpt_iterator == waypoints.begin()) {
|
||||
return 0;
|
||||
|
@ -274,14 +274,14 @@ FGAIWaypoint* const FGAIFlightPlan::getPreviousWaypoint( void ) const
|
|||
}
|
||||
}
|
||||
|
||||
FGAIWaypoint* const FGAIFlightPlan::getCurrentWaypoint( void ) const
|
||||
FGAIWaypoint* FGAIFlightPlan::getCurrentWaypoint( void ) const
|
||||
{
|
||||
if (wpt_iterator == waypoints.end())
|
||||
return 0;
|
||||
return *wpt_iterator;
|
||||
}
|
||||
|
||||
FGAIWaypoint* const FGAIFlightPlan::getNextWaypoint( void ) const
|
||||
FGAIWaypoint* FGAIFlightPlan::getNextWaypoint( void ) const
|
||||
{
|
||||
wpt_vector_iterator i = waypoints.end();
|
||||
i--; // end() points to one element after the last one.
|
||||
|
|
|
@ -107,9 +107,9 @@ public:
|
|||
const std::string& airline);
|
||||
~FGAIFlightPlan();
|
||||
|
||||
FGAIWaypoint* const getPreviousWaypoint( void ) const;
|
||||
FGAIWaypoint* const getCurrentWaypoint( void ) const;
|
||||
FGAIWaypoint* const getNextWaypoint( void ) const;
|
||||
FGAIWaypoint* getPreviousWaypoint( void ) const;
|
||||
FGAIWaypoint* getCurrentWaypoint( void ) const;
|
||||
FGAIWaypoint* getNextWaypoint( void ) const;
|
||||
void IncrementWaypoint( bool erase );
|
||||
void DecrementWaypoint( bool erase );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue