mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Fixed clazy warning: signal CLineReader::quit hides signal QThread::quit.
This commit is contained in:
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
|
||||
CLineReader lineReader(&a);
|
||||
CWeatherDataPrinter printer(&a);
|
||||
QObject::connect(&lineReader, &CLineReader::weatherDataRequest, &printer, &CWeatherDataPrinter::fetchAndPrintWetherData);
|
||||
QObject::connect(&lineReader, &CLineReader::quit, &lineReader, &CLineReader::terminate);
|
||||
QObject::connect(&lineReader, &CLineReader::wantsToQuit, &lineReader, &CLineReader::terminate);
|
||||
QObject::connect(&lineReader, &CLineReader::finished, &a, &QCoreApplication::quit);
|
||||
|
||||
QTextStream qtout(stdout);
|
||||
|
||||
@@ -40,7 +40,7 @@ void CLineReader::run()
|
||||
|
||||
if (line == "x")
|
||||
{
|
||||
emit quit();
|
||||
emit wantsToQuit();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ signals:
|
||||
void weatherDataRequest(const BlackMisc::Geo::CCoordinateGeodetic &position);
|
||||
|
||||
//! User is asking to quit
|
||||
void quit();
|
||||
void wantsToQuit();
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user