From 11dc5920ef2b69814692b4dbc0c53b5078ad76f5 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Thu, 3 Mar 2022 21:30:33 +0800 Subject: [PATCH] print the gpservice logs --- GPClient/gpclient.cpp | 4 ++-- GPClient/vpn_dbus.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GPClient/gpclient.cpp b/GPClient/gpclient.cpp index a2741cb..8e56643 100644 --- a/GPClient/gpclient.cpp +++ b/GPClient/gpclient.cpp @@ -32,8 +32,8 @@ GPClient::GPClient(QWidget *parent, IVpn *vpn) QObject *ov = dynamic_cast(vpn); connect(ov, SIGNAL(connected()), this, SLOT(onVPNConnected())); connect(ov, SIGNAL(disconnected()), this, SLOT(onVPNDisconnected())); - connect(ov, SIGNAL(error(const &QString)), this, SLOT(onVPNError(const QString&))); - connect(ov, SIGNAL(logAvailable(const &QString)), this, SLOT(onVPNLogAvailable(const QString&))); + connect(ov, SIGNAL(error(QString)), this, SLOT(onVPNError(QString))); + connect(ov, SIGNAL(logAvailable(QString)), this, SLOT(onVPNLogAvailable(QString))); // Initiallize the context menu of system tray. initSystemTrayIcon(); diff --git a/GPClient/vpn_dbus.h b/GPClient/vpn_dbus.h index a66c86a..28b24eb 100644 --- a/GPClient/vpn_dbus.h +++ b/GPClient/vpn_dbus.h @@ -27,7 +27,7 @@ public: signals: // SIGNALS void connected(); void disconnected(); - void error(const QString &errorMessage); - void logAvailable(const QString &log); + void error(QString errorMessage); + void logAvailable(QString log); }; #endif