diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/dcc/DccFileTransfer.cpp | 3 | ||||
| -rw-r--r-- | src/modules/objects/qtftp/qftp.cpp | 3 | ||||
| -rw-r--r-- | src/modules/objects/qtftp/qftp.h | 6 | ||||
| -rw-r--r-- | src/modules/objects/qthttp/qhttp.cpp | 3 | ||||
| -rw-r--r-- | src/modules/objects/qthttp/qhttp.h | 3 | ||||
| -rw-r--r-- | src/modules/perlcore/ppport.h | 8 | ||||
| -rw-r--r-- | src/modules/upnp/Service.cpp | 3 |
7 files changed, 14 insertions, 15 deletions
diff --git a/src/modules/dcc/DccFileTransfer.cpp b/src/modules/dcc/DccFileTransfer.cpp index e1dca6012..ab5692539 100644 --- a/src/modules/dcc/DccFileTransfer.cpp +++ b/src/modules/dcc/DccFileTransfer.cpp @@ -672,8 +672,7 @@ void DccSendThread::updateStats() m_pMutex->unlock(); } -union _ack_buffer -{ +union _ack_buffer { char cAckBuffer[4]; quint32 i32AckBuffer; }; diff --git a/src/modules/objects/qtftp/qftp.cpp b/src/modules/objects/qtftp/qftp.cpp index 626aaae70..2f048985e 100644 --- a/src/modules/objects/qtftp/qftp.cpp +++ b/src/modules/objects/qtftp/qftp.cpp @@ -78,8 +78,7 @@ public: // If is_ba is true, ba is used; ba is never 0. // Otherwise dev is used; dev can be 0 or not. - union - { + union { QByteArray * ba; QIODevice * dev; } data; diff --git a/src/modules/objects/qtftp/qftp.h b/src/modules/objects/qtftp/qftp.h index 68c14e46d..f9b6ff1df 100644 --- a/src/modules/objects/qtftp/qftp.h +++ b/src/modules/objects/qtftp/qftp.h @@ -143,7 +143,8 @@ public: public Q_SLOTS: void abort(); - Q_SIGNALS : void stateChanged(int); +Q_SIGNALS: + void stateChanged(int); void listInfo(const QUrlInfo &); void readyRead(); void dataTransferProgress(qint64, qint64); @@ -239,8 +240,7 @@ private: // If is_ba is true, ba is used; ba is never 0. // Otherwise dev is used; dev can be 0 or not. - union - { + union { QByteArray * ba; QIODevice * dev; } data; diff --git a/src/modules/objects/qthttp/qhttp.cpp b/src/modules/objects/qthttp/qhttp.cpp index 8dd437451..f6de5e6a5 100644 --- a/src/modules/objects/qthttp/qhttp.cpp +++ b/src/modules/objects/qthttp/qhttp.cpp @@ -234,8 +234,7 @@ protected: QHttpRequestHeader header; private: - union - { + union { QByteArray * ba; QIODevice * dev; } data; diff --git a/src/modules/objects/qthttp/qhttp.h b/src/modules/objects/qthttp/qhttp.h index f40361656..3e622e943 100644 --- a/src/modules/objects/qthttp/qhttp.h +++ b/src/modules/objects/qthttp/qhttp.h @@ -252,7 +252,8 @@ public Q_SLOTS: void ignoreSslErrors(); #endif - Q_SIGNALS : void stateChanged(int); +Q_SIGNALS: + void stateChanged(int); void responseHeaderReceived(const QHttpResponseHeader & resp); void readyRead(const QHttpResponseHeader & resp); diff --git a/src/modules/perlcore/ppport.h b/src/modules/perlcore/ppport.h index 187afa347..69310ffab 100644 --- a/src/modules/perlcore/ppport.h +++ b/src/modules/perlcore/ppport.h @@ -503,7 +503,7 @@ __DATA__*/ #endif #endif #ifndef PoisonWith -#define PoisonWith(d, n, t, b) (void) memset((char *)(d), (U8)(b), (n) * sizeof(t)) +#define PoisonWith(d, n, t, b) (void)memset((char *)(d), (U8)(b), (n) * sizeof(t)) #endif #ifndef PoisonNew #define PoisonNew(d, n, t) PoisonWith(d, n, t, 0xAB) @@ -631,7 +631,7 @@ typedef NVTYPE NV; #else #if defined(VOIDFLAGS) && (VOIDFLAGS) && (defined(sun) || defined(__sun__)) && !defined(__GNUC__) #define STMT_START if(1) -#define STMT_END else(void)0 +#define STMT_END else(void) 0 #else #define STMT_START do #define STMT_END while(0) @@ -1018,8 +1018,8 @@ extern yy_parser DPPP_(dummy_PL_parser); (flags) & ~G_METHOD) \ : perl_call_sv(sv, flags)) #else -#define call_sv(sv, flags) ((flags)&G_METHOD ? Perl_call_method(aTHX_(char *)SvPV_nolen_const(sv), \ - (flags) & ~G_METHOD) \ +#define call_sv(sv, flags) ((flags)&G_METHOD ? Perl_call_method(aTHX_(char *) SvPV_nolen_const(sv), \ + (flags) & ~G_METHOD) \ : Perl_call_sv(aTHX_ sv, flags)) #endif #endif diff --git a/src/modules/upnp/Service.cpp b/src/modules/upnp/Service.cpp index e0547bfc2..2b0d87d4e 100644 --- a/src/modules/upnp/Service.cpp +++ b/src/modules/upnp/Service.cpp @@ -233,7 +233,8 @@ namespace UPnP QByteArray response = reply->readAll(); QDomDocument xml; - qDebug() << "Response:\n" << response << "\n---\n"; + qDebug() << "Response:\n" + << response << "\n---\n"; // Parse the XML QString errorMessage; |
