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:
5ed0ff8
)
mark warning case in QXmlStreamReader::addData() as unlikely
author
Ivailo Monev
<xakepa10@gmail.com>
Wed, 13 Jan 2021 03:45:14 +0000
(
05:45
+0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Wed, 13 Jan 2021 03:45:14 +0000
(
05:45
+0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/xml/kernel/qxmlstream.cpp
patch
|
blob
|
history
diff --git
a/src/xml/kernel/qxmlstream.cpp
b/src/xml/kernel/qxmlstream.cpp
index
b6924a8
..
f19fdde
100644
(file)
--- a/
src/xml/kernel/qxmlstream.cpp
+++ b/
src/xml/kernel/qxmlstream.cpp
@@
-469,7
+469,7
@@
QIODevice *QXmlStreamReader::device() const
void QXmlStreamReader::addData(const QByteArray &data)
{
Q_D(QXmlStreamReader);
- if (
d->device
) {
+ if (
Q_UNLIKELY(d->device)
) {
qWarning("QXmlStreamReader: addData() with device()");
return;
}