aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler/kconfig_compiler.cpp
diff options
context:
space:
mode:
authorMatthew Dawson <matthew@mjdsystems.ca>2015-12-29 00:30:50 -0500
committerMatthew Dawson <matthew@mjdsystems.ca>2015-12-29 00:30:50 -0500
commit837edaabc446b946fca5f318ae53ad305eab13fd (patch)
tree82aaa818402880c2b8241c729449974307360cfe /src/kconfig_compiler/kconfig_compiler.cpp
parent7a6d0d0d7b712e326fe787316d0a98e653ceb6f2 (diff)
downloadkconfig-837edaabc446b946fca5f318ae53ad305eab13fd.tar.gz
kconfig-837edaabc446b946fca5f318ae53ad305eab13fd.tar.bz2
Remove duplicate branch in kconfig_compiler.cpp
This has been around for a long time, no need to dupilcate. Coverity issue 1289077.
Diffstat (limited to 'src/kconfig_compiler/kconfig_compiler.cpp')
-rw-r--r--src/kconfig_compiler/kconfig_compiler.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp
index c5bcdc1b..ea68fec6 100644
--- a/src/kconfig_compiler/kconfig_compiler.cpp
+++ b/src/kconfig_compiler/kconfig_compiler.cpp
@@ -1232,12 +1232,7 @@ QString newItem(const CfgEntry* entry, const QString &key, const QString& defaul
t += ", values" + entry->name();
}
if (!defaultValue.isEmpty()) {
- t += QLatin1String(", ");
- if (entry->type() == QLatin1String("String")) {
- t += defaultValue;
- } else {
- t += defaultValue;
- }
+ t += QLatin1String(", ") + defaultValue;
}
t += QLatin1String(" )");