OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b675294
)
use QSTACKARRAY() macro in QHostAddress::toString()
author
Ivailo Monev
<xakepa10@gmail.com>
Sat, 7 Aug 2021 14:04:09 +0000
(17:04 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sat, 7 Aug 2021 14:04:09 +0000
(17:04 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/network/kernel/qhostaddress.cpp
patch
|
blob
|
history
diff --git
a/src/network/kernel/qhostaddress.cpp
b/src/network/kernel/qhostaddress.cpp
index
7c2913d
..
f9143b4
100644
(file)
--- a/
src/network/kernel/qhostaddress.cpp
+++ b/
src/network/kernel/qhostaddress.cpp
@@
-26,6
+26,7
@@
#include "qstringlist.h"
#include "qendian.h"
#include "qnativesocketengine_p.h"
+#include "qcorecommon_p.h"
#ifndef QT_NO_DATASTREAM
#include "qdatastream.h"
@@
-676,7
+677,7
@@
QString QHostAddress::toString() const
}
if (d->protocol == QAbstractSocket::IPv6Protocol) {
-
quint16 ugle[8]
;
+
QSTACKARRAY(quint16, ugle, 8)
;
for (int i = 0; i < 8; i++) {
ugle[i] = (quint16(d->a6[2*i]) << 8) | quint16(d->a6[2*i+1]);
}