修复了到站不停车的问题

用nullptr替代了NULL
This commit is contained in:
2022-07-01 20:00:30 +08:00
parent 752ddf8a33
commit 73b096aa3d
7 changed files with 51 additions and 56 deletions

View File

@@ -46,7 +46,6 @@ public:
virtual ~BusStrategyBase();
/**
* 获得当前公交车应该前进的方向
* @return 公交车前进的方向
@@ -78,11 +77,6 @@ public:
*/
void PrintStateSignal(QString string);
/**
* 获得公交车前进方向的信号
*/
void GetBusDirectionSignal();
/**
* 运行公交车的信号
* @param direction 公交车前进的方向
@@ -113,11 +107,6 @@ public slots:
*/
void OneTickSlot(int remaining_time);
/**
* 获得公交车前进方向的槽函数
*/
void GetBusDirectionSlot();
/**
* 处理到站事件的槽函数
*/
@@ -136,9 +125,9 @@ private:
QString PrintState(int remaining_time) const;
/**
* 设置各种连接
* 决定公交车状态的函数
*/
void SetConnection() const;
void DetermineBusStatus();
/**
* 处理请求