aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:16:23 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:28 +0100
commit43acb9c9b1cb239ea2e4e956bf734e8f29b018f4 (patch)
treecd15a3a264d9cd7d34d09fb62587f7555e091daa /src/modules
parentpopups: revert part of fa33e18 (diff)
downloadKVIrc-43acb9c9b1cb239ea2e4e956bf734e8f29b018f4.tar.gz
KVIrc-43acb9c9b1cb239ea2e4e956bf734e8f29b018f4.tar.bz2
KVIrc-43acb9c9b1cb239ea2e4e956bf734e8f29b018f4.zip
Update my clang-format to 3.8.0
Don't sort includes
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/dcc/DccFileTransfer.cpp3
-rw-r--r--src/modules/objects/qtftp/qftp.cpp3
-rw-r--r--src/modules/objects/qtftp/qftp.h6
-rw-r--r--src/modules/objects/qthttp/qhttp.cpp3
-rw-r--r--src/modules/objects/qthttp/qhttp.h3
-rw-r--r--src/modules/perlcore/ppport.h8
-rw-r--r--src/modules/upnp/Service.cpp3
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;