From b11317a64339f5a4bcffc8234ecaf15c7fb416f2 Mon Sep 17 00:00:00 2001 From: Axel Waggershauser Date: Fri, 15 Mar 2013 00:42:15 +0100 Subject: Whitespace cleanup: remove trailing whitespace Remove all trailing whitespace from the following list of files: *.cpp *.h *.conf *.qdoc *.pro *.pri *.mm *.rc *.pl *.qps *.xpm *.txt *README excluding 3rdparty, test-data and auto generated code. Note A): the only non 3rdparty c++-files that still have trailing whitespace after this change are: * src/corelib/codecs/cp949codetbl_p.h * src/corelib/codecs/qjpunicode.cpp * src/corelib/codecs/qbig5codec.cpp * src/corelib/xml/qxmlstream_p.h * src/tools/qdoc/qmlparser/qqmljsgrammar.cpp * src/tools/uic/ui4.cpp * tests/auto/other/qtokenautomaton/tokenizers/* * tests/benchmarks/corelib/tools/qstring/data.cpp * util/lexgen/tokenizer.cpp Note B): in about 30 files some overlapping 'leading tab' and 'TAB character in non-leading whitespace' issues have been fixed to make the sanity bot happy. Plus some general ws-fixes here and there as asked for during review. Change-Id: Ia713113c34d82442d6ce4d93d8b1cf545075d11d Reviewed-by: Oswald Buddenhagen --- src/plugins/bearer/connman/qconnmanengine.cpp | 2 +- .../bearer/connman/qconnmanservice_linux.cpp | 4 +- .../bearer/connman/qconnmanservice_linux_p.h | 2 +- .../bearer/networkmanager/qnetworkmanagerservice.h | 84 +++++++++++----------- src/plugins/bearer/qnetworksession_impl.h | 2 +- src/plugins/imageformats/ico/qicohandler.cpp | 2 +- src/plugins/imageformats/ico/qicohandler.h | 6 +- .../platforms/cocoa/qcocoaeventdispatcher.mm | 36 +++++----- src/plugins/platforms/xcb/qxcbcursor.cpp | 2 +- 9 files changed, 70 insertions(+), 70 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/bearer/connman/qconnmanengine.cpp b/src/plugins/bearer/connman/qconnmanengine.cpp index 589b0e2c24..e85949afb6 100644 --- a/src/plugins/bearer/connman/qconnmanengine.cpp +++ b/src/plugins/bearer/connman/qconnmanengine.cpp @@ -574,7 +574,7 @@ void QConnmanEngine::addServiceConfiguration(const QString &servicePath) QNetworkConfigurationPrivatePointer ptr(cpPriv); accessPointConfigurations.insert(ptr->id, ptr); foundConfigurations.append(cpPriv); - configInterfaces[cpPriv->id] = serv->getInterface(); + configInterfaces[cpPriv->id] = serv->getInterface(); locker.unlock(); emit configurationAdded(ptr); diff --git a/src/plugins/bearer/connman/qconnmanservice_linux.cpp b/src/plugins/bearer/connman/qconnmanservice_linux.cpp index 56ae2b6e3c..e78a597433 100644 --- a/src/plugins/bearer/connman/qconnmanservice_linux.cpp +++ b/src/plugins/bearer/connman/qconnmanservice_linux.cpp @@ -405,7 +405,7 @@ QVariant QConnmanProfileInterface::getProperty(const QString &property) QVariantMap map = getProperties(); if (map.contains(property)) { var = map.value(property); - } + } return var; } @@ -493,7 +493,7 @@ QVariant QConnmanServiceInterface::getProperty(const QString &property) QVariantMap map = getProperties(); if (map.contains(property)) { var = map.value(property); - } + } return var; } diff --git a/src/plugins/bearer/connman/qconnmanservice_linux_p.h b/src/plugins/bearer/connman/qconnmanservice_linux_p.h index d1524ca753..a437c6609c 100644 --- a/src/plugins/bearer/connman/qconnmanservice_linux_p.h +++ b/src/plugins/bearer/connman/qconnmanservice_linux_p.h @@ -134,7 +134,7 @@ public: QString requestSession(const QString &bearerName); void releaseSession(); - + // properties QString getState(); QStringList getAvailableTechnologies(); diff --git a/src/plugins/bearer/networkmanager/qnetworkmanagerservice.h b/src/plugins/bearer/networkmanager/qnetworkmanagerservice.h index 7038dde3d9..7febe27ad2 100644 --- a/src/plugins/bearer/networkmanager/qnetworkmanagerservice.h +++ b/src/plugins/bearer/networkmanager/qnetworkmanagerservice.h @@ -139,26 +139,26 @@ class QNetworkManagerInterfacePrivate; class QNetworkManagerInterface : public QObject { Q_OBJECT - + public: - + QNetworkManagerInterface(QObject *parent = 0); ~QNetworkManagerInterface(); - + QList getDevices() const; void activateConnection(const QString &serviceName, QDBusObjectPath connection, QDBusObjectPath device, QDBusObjectPath specificObject); void deactivateConnection(QDBusObjectPath connectionPath) const; - + QDBusObjectPath path() const; QDBusInterface *connectionInterface() const; - + bool wirelessEnabled() const; bool wirelessHardwareEnabled() const; QList activeConnections() const; quint32 state(); bool setConnections(); bool isValid(); - + Q_SIGNALS: void deviceAdded(QDBusObjectPath); void deviceRemoved(QDBusObjectPath); @@ -176,9 +176,9 @@ class QNetworkManagerInterfaceAccessPointPrivate; class QNetworkManagerInterfaceAccessPoint : public QObject { Q_OBJECT - + public: - + enum DeviceState { Unknown = 0, Unmanaged, @@ -191,14 +191,14 @@ public: Activated, Failed }; - + enum ApFlag { ApNone = 0x0, Privacy = 0x1 }; - + Q_DECLARE_FLAGS(ApFlags, ApFlag); - + enum ApSecurityFlag { ApSecurityNone = 0x0, PairWep40 = 0x1, @@ -212,9 +212,9 @@ public: KeyPsk = 0x100, Key8021x = 0x200 }; - + Q_DECLARE_FLAGS(ApSecurityFlags, ApSecurityFlag); - + explicit QNetworkManagerInterfaceAccessPoint(const QString &dbusPathName, QObject *parent = 0); ~QNetworkManagerInterfaceAccessPoint(); @@ -231,7 +231,7 @@ public: quint32 strength() const; bool setConnections(); bool isValid(); - + Q_SIGNALS: void propertiesChanged(QMap ); void propertiesChanged( const QString &, QMap); @@ -245,23 +245,23 @@ class QNetworkManagerInterfaceDevicePrivate; class QNetworkManagerInterfaceDevice : public QObject { Q_OBJECT - + public: - + explicit QNetworkManagerInterfaceDevice(const QString &deviceObjectPath, QObject *parent = 0); ~QNetworkManagerInterfaceDevice(); - + QString udi() const; QString networkInterface() const; QDBusInterface *connectionInterface() const; quint32 ip4Address() const; quint32 state() const; quint32 deviceType() const; - + QDBusObjectPath ip4config() const; bool setConnections(); bool isValid(); - + Q_SIGNALS: void stateChanged(const QString &, quint32); @@ -274,20 +274,20 @@ class QNetworkManagerInterfaceDeviceWiredPrivate; class QNetworkManagerInterfaceDeviceWired : public QObject { Q_OBJECT - + public: - + explicit QNetworkManagerInterfaceDeviceWired(const QString &ifaceDevicePath, QObject *parent = 0); ~QNetworkManagerInterfaceDeviceWired(); - + QDBusInterface *connectionInterface() const; QString hwAddress() const; quint32 speed() const; bool carrier() const; bool setConnections(); bool isValid(); - + Q_SIGNALS: void propertiesChanged( const QString &, QMap); private: @@ -299,9 +299,9 @@ class QNetworkManagerInterfaceDeviceWirelessPrivate; class QNetworkManagerInterfaceDeviceWireless : public QObject { Q_OBJECT - + public: - + enum DeviceCapability { None = 0x0, Wep40 = 0x1, @@ -311,11 +311,11 @@ public: Wpa = 0x10, Rsn = 0x20 }; - + explicit QNetworkManagerInterfaceDeviceWireless(const QString &ifaceDevicePath, QObject *parent = 0); ~QNetworkManagerInterfaceDeviceWireless(); - + QDBusObjectPath path() const; QList getAccessPoints(); QDBusInterface *connectionInterface() const; @@ -327,7 +327,7 @@ public: quint32 wirelessCapabilities() const; bool setConnections(); bool isValid(); - + Q_SIGNALS: void propertiesChanged( const QString &, QMap); void accessPointAdded(const QString &,QDBusObjectPath); @@ -341,12 +341,12 @@ class QNetworkManagerSettingsPrivate; class QNetworkManagerSettings : public QObject { Q_OBJECT - + public: - + explicit QNetworkManagerSettings(const QString &settingsService, QObject *parent = 0); ~QNetworkManagerSettings(); - + QDBusInterface *connectionInterface() const; QList listConnections(); bool setConnections(); @@ -362,12 +362,12 @@ class QNetworkManagerSettingsConnectionPrivate; class QNetworkManagerSettingsConnection : public QObject { Q_OBJECT - + public: - + QNetworkManagerSettingsConnection(const QString &settingsService, const QString &connectionObjectPath, QObject *parent = 0); ~QNetworkManagerSettingsConnection(); - + QDBusInterface *connectionInterface() const; QNmSettingsMap getSettings(); bool setConnections(); @@ -382,7 +382,7 @@ public: bool isValid(); Q_SIGNALS: - + void updated(const QNmSettingsMap &settings); void removed(const QString &path); @@ -395,18 +395,18 @@ class QNetworkManagerConnectionActivePrivate; class QNetworkManagerConnectionActive : public QObject { Q_OBJECT - + public: - + enum ActiveConnectionState { Unknown = 0, Activating = 1, Activated = 2 }; - + explicit QNetworkManagerConnectionActive(const QString &dbusPathName, QObject *parent = 0); ~ QNetworkManagerConnectionActive(); - + QDBusInterface *connectionInterface() const; QString serviceName() const; QDBusObjectPath connection() const; @@ -417,7 +417,7 @@ public: bool setConnections(); bool isValid(); - + Q_SIGNALS: void propertiesChanged(QList); void propertiesChanged( const QString &, QMap); @@ -430,7 +430,7 @@ class QNetworkManagerIp4ConfigPrivate; class QNetworkManagerIp4Config : public QObject { Q_OBJECT - + public: explicit QNetworkManagerIp4Config(const QString &dbusPathName, QObject *parent = 0); ~QNetworkManagerIp4Config(); @@ -439,7 +439,7 @@ public: bool isValid(); private: - QNetworkManagerIp4ConfigPrivate *d; + QNetworkManagerIp4ConfigPrivate *d; }; QT_END_NAMESPACE diff --git a/src/plugins/bearer/qnetworksession_impl.h b/src/plugins/bearer/qnetworksession_impl.h index 12893108dc..23828c885c 100644 --- a/src/plugins/bearer/qnetworksession_impl.h +++ b/src/plugins/bearer/qnetworksession_impl.h @@ -77,7 +77,7 @@ public: //called by QNetworkSession constructor and ensures //that the state is immediately updated (w/o actually opening - //a session). Also this function should take care of + //a session). Also this function should take care of //notification hooks to discover future state changes. void syncStateWithInterface(); diff --git a/src/plugins/imageformats/ico/qicohandler.cpp b/src/plugins/imageformats/ico/qicohandler.cpp index b1ef823068..a45c3875bc 100644 --- a/src/plugins/imageformats/ico/qicohandler.cpp +++ b/src/plugins/imageformats/ico/qicohandler.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -/*! +/*! \class QtIcoHandler \since 4.4 \brief The QtIcoHandler class provides support for the ICO image format. diff --git a/src/plugins/imageformats/ico/qicohandler.h b/src/plugins/imageformats/ico/qicohandler.h index c0439b9d11..65c0f5cf59 100644 --- a/src/plugins/imageformats/ico/qicohandler.h +++ b/src/plugins/imageformats/ico/qicohandler.h @@ -57,13 +57,13 @@ public: bool write(const QImage &image); QByteArray name() const; - + int imageCount() const; bool jumpToImage(int imageNumber); bool jumpToNextImage(); - + static bool canRead(QIODevice *device); - + bool supportsOption(ImageOption option) const; QVariant option(ImageOption option) const; diff --git a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm index ed4f8cd1fb..5c487b0bdd 100644 --- a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm +++ b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm @@ -299,27 +299,27 @@ bool QCocoaEventDispatcher::hasPendingEvents() static bool IsMouseOrKeyEvent( NSEvent* event ) { bool result = false; - + switch( [event type] ) { - case NSLeftMouseDown: - case NSLeftMouseUp: - case NSRightMouseDown: - case NSRightMouseUp: + case NSLeftMouseDown: + case NSLeftMouseUp: + case NSRightMouseDown: + case NSRightMouseUp: case NSMouseMoved: // ?? - case NSLeftMouseDragged: + case NSLeftMouseDragged: case NSRightMouseDragged: - case NSMouseEntered: - case NSMouseExited: - case NSKeyDown: - case NSKeyUp: + case NSMouseEntered: + case NSMouseExited: + case NSKeyDown: + case NSKeyUp: case NSFlagsChanged: // key modifiers changed? case NSCursorUpdate: // ?? - case NSScrollWheel: - case NSTabletPoint: - case NSTabletProximity: - case NSOtherMouseDown: - case NSOtherMouseUp: + case NSScrollWheel: + case NSTabletPoint: + case NSTabletProximity: + case NSOtherMouseDown: + case NSOtherMouseUp: case NSOtherMouseDragged: #ifndef QT_NO_GESTURES case NSEventTypeGesture: // touch events @@ -639,7 +639,7 @@ static void setChildrenWorksWhenModal(QWindow *window, bool worksWhenModal) Q_UNUSED(worksWhenModal) // For NSPanels (but not NSWindows, sadly), we can set the flag - // worksWhenModal, so that they are active even when they are not modal. + // worksWhenModal, so that they are active even when they are not modal. /* ### not ported QList dialogs = window->findChildren(); @@ -680,7 +680,7 @@ void QCocoaEventDispatcherPrivate::cleanupModalSessions() // this to actually end the sessions for real (rather than at the // point they were marked as stopped), is that ending a session // when no other session runs below it on the stack will make cocoa - // drop some events on the floor. + // drop some events on the floor. QCocoaAutoReleasePool pool; int stackSize = cocoaModalSessionStack.size(); @@ -859,7 +859,7 @@ void QCocoaEventDispatcherPrivate::processPostedEvents() if (currentExecIsNSAppRun) { // The event dispatcher has been interrupted. But since // [NSApplication run] is running the event loop, we - // delayed stopping it until now (to let cocoa process + // delayed stopping it until now (to let cocoa process // pending cocoa events first). if (currentModalSessionCached) temporarilyStopAllModalSessions(); diff --git a/src/plugins/platforms/xcb/qxcbcursor.cpp b/src/plugins/platforms/xcb/qxcbcursor.cpp index 1b11ef7f95..ff40c6a9ab 100644 --- a/src/plugins/platforms/xcb/qxcbcursor.cpp +++ b/src/plugins/platforms/xcb/qxcbcursor.cpp @@ -306,7 +306,7 @@ void QXcbCursor::changeCursor(QCursor *cursor, QWindow *widget) else // No X11 cursor control when there is no widget under the cursor return; - + xcb_cursor_t c = XCB_CURSOR_NONE; if (cursor) { if (cursor->shape() == Qt::BitmapCursor) { -- cgit v1.2.3