Avoid using 'signals' and 'emit' from Qt to avoid conflicts with other libs (e.g. TBB)

This commit is contained in:
Daniel Girardeau-Montaut
2022-06-30 17:42:50 +02:00
parent 32efc6e4a4
commit eb186e1b9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ public:
void listen(unsigned int port); void listen(unsigned int port);
void close(); void close();
signals: Q_SIGNALS:
JsonRPCResult execute(QString method, QMap<QString, QVariant> params); JsonRPCResult execute(QString method, QMap<QString, QVariant> params);
private slots: private slots:
void onNewConnection(); void onNewConnection();
+1 -1
View File
@@ -82,7 +82,7 @@ void JsonRPCServer::processTextMessage(QString message)
JsonRPCResult result; JsonRPCResult result;
if(!method.isEmpty() && !obj.value("jsonrpc").toString().isEmpty()) { if(!method.isEmpty() && !obj.value("jsonrpc").toString().isEmpty()) {
// perform the RPC // perform the RPC
result = emit execute(method, params); result = Q_EMIT execute(method, params);
} else { } else {
result = JsonRPCResult::error(-32600, "Invalid Request"); result = JsonRPCResult::error(-32600, "Invalid Request");
} }