summaryrefslogtreecommitdiffstats
path: root/Source/CPack/IFW/cmCPackIFWInstaller.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 17:19:29 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-26 06:59:56 (GMT)
commitba8571ff2deb3a29bb980e109abef0e7290de56a (patch)
tree4c43de0a1a78472e35ba6cac1259b62087080dcd /Source/CPack/IFW/cmCPackIFWInstaller.cxx
parent8985c1dfd79804d6318e6dae6e47597a7b71dcd4 (diff)
downloadCMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.zip
CMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.tar.gz
CMake-ba8571ff2deb3a29bb980e109abef0e7290de56a.tar.bz2
clang-tidy: use operators for string comparison
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWInstaller.cxx')
-rw-r--r--Source/CPack/IFW/cmCPackIFWInstaller.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.cxx b/Source/CPack/IFW/cmCPackIFWInstaller.cxx
index 57b47f1..664048d 100644
--- a/Source/CPack/IFW/cmCPackIFWInstaller.cxx
+++ b/Source/CPack/IFW/cmCPackIFWInstaller.cxx
@@ -171,9 +171,8 @@ void cmCPackIFWInstaller::ConfigureFromOptions()
// WizardStyle
if (const char* option = GetOption("CPACK_IFW_PACKAGE_WIZARD_STYLE")) {
- if (WizardStyle.compare("Modern") == 0 &&
- WizardStyle.compare("Aero") == 0 && WizardStyle.compare("Mac") == 0 &&
- WizardStyle.compare("Classic") == 0) {
+ if (WizardStyle == "Modern" && WizardStyle == "Aero" &&
+ WizardStyle == "Mac" && WizardStyle == "Classic") {
cmCPackLogger(
cmCPackLog::LOG_WARNING,
"Option CPACK_IFW_PACKAGE_WIZARD_STYLE has unknown value \""