From 3970132c81b71fce68a86cfaa5bda0a46f5f4f4f Mon Sep 17 00:00:00 2001 From: Armin Felder Date: Sat, 19 Jan 2019 13:27:05 +0100 Subject: [PATCH] sd --- engine.pro | 3 ++- notifications/ios/applepushnotifications.cpp | 4 ++-- notifications/notificationabstract.h | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/engine.pro b/engine.pro index 51793ea..7b65082 100644 --- a/engine.pro +++ b/engine.pro @@ -283,7 +283,8 @@ CONFIG(release, debug|release) { QMAKE_CXXFLAGS += -Ofast -funroll-loops -fno-signed-zeros -fno-trapping-math } ios:{ - QMAKE_CXXFLAGS += -O3 + CONFIG += ltcg + QMAKE_CXXFLAGS += -Ofast -funroll-loops -fno-signed-zeros -fno-trapping-math } } diff --git a/notifications/ios/applepushnotifications.cpp b/notifications/ios/applepushnotifications.cpp index 9113a21..4724356 100755 --- a/notifications/ios/applepushnotifications.cpp +++ b/notifications/ios/applepushnotifications.cpp @@ -32,7 +32,7 @@ ApplePushNotifications::ApplePushNotifications() connect( mNotificationInstance, &IosNotificationReceiver::switchChannelByName, this, &ApplePushNotifications::onSwitchRequest ); } -void ApplePushNotifications::receiveMessage( QString pServer, QString pRid, QString pName, QString pType ) +void ApplePushNotifications::receiveMessage( const QString &pServer, const QString &pRid, const QString &pName, const QString &pType ) { emit messageReceived( pServer, pRid, pName, pType ); } @@ -60,7 +60,7 @@ void ApplePushNotifications::checkForPendingMessages() emit switchChannelByName( mRoomName ); } -void ApplePushNotifications::onSwitchRequest( QString pName ) +void ApplePushNotifications::onSwitchRequest( const QString &pName ) { mRoomName = pName; emit switchChannelByName( pName ); diff --git a/notifications/notificationabstract.h b/notifications/notificationabstract.h index 0b287af..b14d356 100755 --- a/notifications/notificationabstract.h +++ b/notifications/notificationabstract.h @@ -44,9 +44,9 @@ class NotificationAbstract : public QObject QString mToken; signals: - void tokenReceived( const QString &pToken ); - void messageReceived( const QString &pServer, const QString &pRid, const QString &pName, const QString &pType ); - void switchChannelByName( const QString &pChannel ); + void tokenReceived( QString pToken ); + void messageReceived( QString pServer, QString pRid, QString pName, QString pType ); + void switchChannelByName( QString pChannel ); }; -- GitLab