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:
4338e0e
)
mark compatibility case unlikely in QString::vsprintf()
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 9 Dec 2019 17:37:16 +0000
(17:37 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 9 Dec 2019 17:37:16 +0000
(17:37 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/tools/qstring.cpp
patch
|
blob
|
history
diff --git
a/src/core/tools/qstring.cpp
b/src/core/tools/qstring.cpp
index
d1490fa
..
80b4974
100644
(file)
--- a/
src/core/tools/qstring.cpp
+++ b/
src/core/tools/qstring.cpp
@@
-4641,7
+4641,7
@@
QString &QString::sprintf(const char *cformat, ...)
QString &QString::vsprintf(const char* cformat, va_list ap)
{
- if (
!cformat || !*cformat
) {
+ if (
Q_UNLIKELY(!cformat || !*cformat)
) {
// Qt 1.x compat
*this = fromLatin1("");
return *this;