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:
953512e
)
use correct type for meta type in qNumVariantToHelper<T>()
author
Ivailo Monev
<xakepa10@gmail.com>
Tue, 12 Jan 2021 08:12:28 +0000
(10:12 +0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Tue, 12 Jan 2021 08:12:28 +0000
(10:12 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/kernel/qvariant.cpp
patch
|
blob
|
history
diff --git
a/src/core/kernel/qvariant.cpp
b/src/core/kernel/qvariant.cpp
index
93a30a5
..
cf456cb
100644
(file)
--- a/
src/core/kernel/qvariant.cpp
+++ b/
src/core/kernel/qvariant.cpp
@@
-2510,7
+2510,7
@@
template <typename T>
inline T qNumVariantToHelper(const QVariant::Private &d,
const QVariant::Handler *handler, bool *ok, const T& val)
{
-
u
int t = qMetaTypeId<T>();
+ int t = qMetaTypeId<T>();
if (ok)
*ok = true;
if (d.type == t)