WiimoteScannerDarwin: Rename stopScanning for code style compliance

This commit is contained in:
OatmealDome 2021-06-23 04:01:42 -04:00
parent be2ec728e4
commit 74755e5939
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public:
void FindWiimotes(std::vector<Wiimote*>&, Wiimote*&) override;
void Update() override {} // not needed
private:
bool stopScanning = false;
bool m_stop_scanning = false;
};
} // namespace WiimoteReal

View File

@ -23,7 +23,7 @@ namespace WiimoteReal
{
WiimoteScannerDarwin::~WiimoteScannerDarwin()
{
stopScanning = true;
m_stop_scanning = true;
}
void WiimoteScannerDarwin::FindWiimotes(std::vector<Wiimote*>& found_wiimotes,
@ -60,7 +60,7 @@ void WiimoteScannerDarwin::FindWiimotes(std::vector<Wiimote*>& found_wiimotes,
do
{
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
} while (!sbt->done && !stopScanning);
} while (!sbt->done && !m_stop_scanning);
int found_devices = [[bti foundDevices] count];