Package: kde4libs / 4:4.14.2-5+deb8u2

kde4libs_interpret_qvarianttype_as_qmetatypetype.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit b722fc7feb2ef719f221784598b5c586591ca7b6
Author: Maximiliano Curia <maxy@debian.org>
Date:   Tue Dec 10 08:47:36 2013 -0300

    Interpret QVariant::Tpe as QMetaType::type

diff --git a/kdecore/config/kconfiggroup.cpp b/kdecore/config/kconfiggroup.cpp
index a804d37..b1b09e4 100644
--- a/kdecore/config/kconfiggroup.cpp
+++ b/kdecore/config/kconfiggroup.cpp
@@ -208,7 +208,7 @@ QVariant KConfigGroup::convertToQVariant(const char *pKey, const QByteArray& val
     // if a type handler is added here you must add a QVConversions definition
     // to conversion_check.h, or ConversionCheck::to_QVariant will not allow
     // readEntry<T> to convert to QVariant.
-    switch( aDefault.type() ) {
+    switch( static_cast<QMetaType::Type>(aDefault.type()) ) {
         case QVariant::Invalid:
             return QVariant();
         case QVariant::String: