diff options
| author | Matthew Dawson <matthew@mjdsystems.ca> | 2015-12-29 00:30:50 -0500 | 
|---|---|---|
| committer | Matthew Dawson <matthew@mjdsystems.ca> | 2015-12-29 00:30:50 -0500 | 
| commit | 837edaabc446b946fca5f318ae53ad305eab13fd (patch) | |
| tree | 82aaa818402880c2b8241c729449974307360cfe | |
| parent | 7a6d0d0d7b712e326fe787316d0a98e653ceb6f2 (diff) | |
| download | kconfig-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.
| -rw-r--r-- | src/kconfig_compiler/kconfig_compiler.cpp | 7 | 
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(" )"); | 
