replace std::string by QString in emitFail()
This commit is contained in:
parent
66f36195d8
commit
ca52d00b80
2 changed files with 3 additions and 3 deletions
|
@ -62,8 +62,8 @@ void McResolver::pingWithDomainA(QString domain, int port) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void McResolver::emitFail(std::string error) {
|
void McResolver::emitFail(QString error) {
|
||||||
qDebug() << "Ping error:" << QString::fromStdString(error);
|
qDebug() << "Ping error:" << error;
|
||||||
emit failed();
|
emit failed();
|
||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void pingWithDomainSRV(QString domain, int port);
|
void pingWithDomainSRV(QString domain, int port);
|
||||||
void pingWithDomainA(QString domain, int port);
|
void pingWithDomainA(QString domain, int port);
|
||||||
void emitFail(std::string error);
|
void emitFail(QString error);
|
||||||
void emitSucceed(QString ip, int port);
|
void emitSucceed(QString ip, int port);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue