summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-02-01 13:44:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-21 11:11:10 +0100
commit2e6607507719a396c941a13e2429647901f60917 (patch)
treec1c1bda52b9fb8aae6c49f2c2e387c40411f5987 /src
parent03f0255474270579fe0c5c4b0856e5aef5c2eae1 (diff)
downloadqtwebchannel-2e6607507719a396c941a13e2429647901f60917.tar.gz
Fix minor coding style issues.
Add space between type name and & or *. Change-Id: I64bfe20510cb43ee0a0b6e08bd433fc657e925a0 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/imports/webchannel/qmlwebchannel.h8
-rw-r--r--src/webchannel/qwebchannel.cpp4
-rw-r--r--src/webchannel/qwebchannel.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/imports/webchannel/qmlwebchannel.h b/src/imports/webchannel/qmlwebchannel.h
index 00fd4e6..d5adf1d 100644
--- a/src/imports/webchannel/qmlwebchannel.h
+++ b/src/imports/webchannel/qmlwebchannel.h
@@ -65,7 +65,7 @@ public:
explicit QmlWebChannel(QObject *parent = 0);
virtual ~QmlWebChannel();
- Q_INVOKABLE void registerObjects(const QVariantMap& objects);
+ Q_INVOKABLE void registerObjects(const QVariantMap &objects);
QQmlListProperty<QObject> registeredObjects();
QQmlListProperty<QWebChannelTransportInterface> transports();
@@ -73,7 +73,7 @@ public:
// TODO: remove this by replacing QML with C++ tests
Q_INVOKABLE bool test_clientIsIdle() const;
- static QmlWebChannelAttached* qmlAttachedProperties(QObject *obj);
+ static QmlWebChannelAttached *qmlAttachedProperties(QObject *obj);
Q_INVOKABLE void connectTo(QObject *transport);
Q_INVOKABLE void disconnectFrom(QObject *transport);
@@ -83,12 +83,12 @@ private slots:
void transportDestroyed(QObject *transport);
private:
- static void registeredObjects_append(QQmlListProperty<QObject> *prop, QObject* item);
+ static void registeredObjects_append(QQmlListProperty<QObject> *prop, QObject *item);
static int registeredObjects_count(QQmlListProperty<QObject> *prop);
static QObject *registeredObjects_at(QQmlListProperty<QObject> *prop, int index);
static void registeredObjects_clear(QQmlListProperty<QObject> *prop);
- static void transports_append(QQmlListProperty<QWebChannelTransportInterface> *prop, QWebChannelTransportInterface* item);
+ static void transports_append(QQmlListProperty<QWebChannelTransportInterface> *prop, QWebChannelTransportInterface *item);
static int transports_count(QQmlListProperty<QWebChannelTransportInterface> *prop);
static QWebChannelTransportInterface *transports_at(QQmlListProperty<QWebChannelTransportInterface> *prop, int index);
static void transports_clear(QQmlListProperty<QWebChannelTransportInterface> *prop);
diff --git a/src/webchannel/qwebchannel.cpp b/src/webchannel/qwebchannel.cpp
index a080aae..5e8e320 100644
--- a/src/webchannel/qwebchannel.cpp
+++ b/src/webchannel/qwebchannel.cpp
@@ -136,12 +136,12 @@ void QWebChannel::disconnectFrom(QWebChannelTransportInterface *transport)
}
}
-void QWebChannel::respond(const QJsonValue& messageId, const QJsonValue& data) const
+void QWebChannel::respond(const QJsonValue &messageId, const QJsonValue &data) const
{
d->sendJSONMessage(messageId, data, true);
}
-void QWebChannel::sendMessage(const QJsonValue& id, const QJsonValue& data) const
+void QWebChannel::sendMessage(const QJsonValue &id, const QJsonValue &data) const
{
d->sendJSONMessage(id, data, false);
}
diff --git a/src/webchannel/qwebchannel.h b/src/webchannel/qwebchannel.h
index 9e30152..9139a15 100644
--- a/src/webchannel/qwebchannel.h
+++ b/src/webchannel/qwebchannel.h
@@ -96,8 +96,8 @@ signals:
void blockUpdatesChanged(bool block);
public slots:
- void sendMessage(const QJsonValue& id, const QJsonValue& data = QJsonValue()) const;
- void respond(const QJsonValue& messageId, const QJsonValue& data = QJsonValue()) const;
+ void sendMessage(const QJsonValue &id, const QJsonValue &data = QJsonValue()) const;
+ void respond(const QJsonValue &messageId, const QJsonValue &data = QJsonValue()) const;
private:
QScopedPointer<QWebChannelPrivate> d;