aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/extensionsystem
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2016-06-23 12:17:22 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-06-24 03:03:48 +0000
commit075a6f68054149b568700cf972b45807d99730b9 (patch)
tree5dc5107edb9ad8d978a2e60d3d3057a79b7210e5 /src/libs/extensionsystem
parent573958e79f1033f502690c5ca2821c8c95f8414b (diff)
Extensionsystem: Fix compile for gcc 4.7.3/Qt5.5...
...and avoid warning. Change-Id: I1291c02b6c4a707f43235582db211933da0072a4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/extensionsystem')
-rw-r--r--src/libs/extensionsystem/pluginspec.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libs/extensionsystem/pluginspec.cpp b/src/libs/extensionsystem/pluginspec.cpp
index 782d3e31150..dfe673217e8 100644
--- a/src/libs/extensionsystem/pluginspec.cpp
+++ b/src/libs/extensionsystem/pluginspec.cpp
@@ -149,12 +149,13 @@ bool PluginDependency::operator==(const PluginDependency &other) const
static QString typeString(PluginDependency::Type type)
{
switch (type) {
- case PluginDependency::Required:
- return QString();
case PluginDependency::Optional:
- return ", optional";
+ return QString(", optional");
case PluginDependency::Test:
- return ", test";
+ return QString(", test");
+ case PluginDependency::Required:
+ default:
+ return QString();
}
}