summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-10-27 16:16:16 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-27 16:35:12 +0200
commit434824aede28e8c36d6991aa218f89daf2cc22fa (patch)
treef00760a20a065e5a70d722bd06411c4348c49e16 /src/widgets/kernel
parentd2aaa13820e400de73e3b0a12af6b7b7c6393d32 (diff)
Fix compiler warnings.
- Fix gcc 4.6.X warnings about assigned but unused variables - Remove trailing ';' from inline functions (Clang) Change-Id: I8670afd6b149748a740f22c65de137762e9f18e1 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qguiplatformplugin_p.h2
-rw-r--r--src/widgets/kernel/qsoftkeymanager_common_p.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/kernel/qguiplatformplugin_p.h b/src/widgets/kernel/qguiplatformplugin_p.h
index 3fae6a5cbe..cb1aebb776 100644
--- a/src/widgets/kernel/qguiplatformplugin_p.h
+++ b/src/widgets/kernel/qguiplatformplugin_p.h
@@ -86,7 +86,7 @@ class Q_WIDGETS_EXPORT QGuiPlatformPlugin : public QObject, public QGuiPlatformP
explicit QGuiPlatformPlugin(QObject *parent = 0);
~QGuiPlatformPlugin();
- virtual QStringList keys() const { return QStringList() << QLatin1String("default"); };
+ virtual QStringList keys() const { return QStringList(QStringLiteral("default")); }
virtual QString styleName();
virtual QPalette palette();
diff --git a/src/widgets/kernel/qsoftkeymanager_common_p.h b/src/widgets/kernel/qsoftkeymanager_common_p.h
index bf4c747223..fc484dc3c6 100644
--- a/src/widgets/kernel/qsoftkeymanager_common_p.h
+++ b/src/widgets/kernel/qsoftkeymanager_common_p.h
@@ -53,6 +53,8 @@
// We mean it.
//
+#include <private/qobject_p.h>
+
QT_BEGIN_HEADER
#ifndef QT_NO_SOFTKEYMANAGER
@@ -64,7 +66,7 @@ class QSoftKeyManagerPrivate : public QObjectPrivate
Q_DECLARE_PUBLIC(QSoftKeyManager)
public:
- virtual void updateSoftKeys_sys() {};
+ virtual void updateSoftKeys_sys() {}
protected:
static QSoftKeyManager *self;