diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2013-11-13 13:54:48 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2013-11-13 16:41:01 +0100 |
commit | b3d3f4f448973569d476a40c39240708fdd32418 (patch) | |
tree | 8881bb6ba73d39397823292a6659717b8b1a1307 /src | |
parent | d33f1219834de48af0383a83ac562ff320586bae (diff) |
remove unnecessary else statement
Change-Id: Iaad2801d5f9700e64e4a44264b57dfaf31f419e6
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/installer/environmentvariablesoperation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/installer/environmentvariablesoperation.cpp b/src/libs/installer/environmentvariablesoperation.cpp index 36b5d6273..4c423d94f 100644 --- a/src/libs/installer/environmentvariablesoperation.cpp +++ b/src/libs/installer/environmentvariablesoperation.cpp @@ -157,9 +157,7 @@ bool EnvironmentVariableOperation::performOperation() Error err = NoError; - err = isSystemWide - ? writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue) - : writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue); + err = writeSetting<QSettingsWrapper>(regPath, name, value, &errorString, &oldvalue); if (err != NoError) { setError(err); setErrorString(errorString); @@ -212,9 +210,7 @@ bool EnvironmentVariableOperation::undoOperation() QString errorString; - const Error err = isSystemWide - ? undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString) - : undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString); + const Error err = undoSetting<QSettingsWrapper>(regPath, name, value, oldvalue, &errorString); if (err != NoError) { setError(err); |