diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-09-05 20:12:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-06 12:42:54 (GMT) |
commit | 62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c (patch) | |
tree | cd026021827cb17c148aeee234fb957ac6f4fc86 /Source/QtDialog/FirstConfigure.cxx | |
parent | bfdf1322e7638687c96b323b1df20fd9c08b3044 (diff) | |
download | CMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.zip CMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.tar.gz CMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.tar.bz2 |
QtDialog: fix clang-tidy warnings
Diffstat (limited to 'Source/QtDialog/FirstConfigure.cxx')
-rw-r--r-- | Source/QtDialog/FirstConfigure.cxx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/QtDialog/FirstConfigure.cxx b/Source/QtDialog/FirstConfigure.cxx index ca5e3b5..c34751a 100644 --- a/Source/QtDialog/FirstConfigure.cxx +++ b/Source/QtDialog/FirstConfigure.cxx @@ -129,8 +129,9 @@ bool StartCompilerSetup::crossCompilerSetup() const void StartCompilerSetup::onSelectionChanged(bool on) { - if (on) + if (on) { selectionChanged(); + } } void StartCompilerSetup::onGeneratorChanged(QString const& name) @@ -144,12 +145,15 @@ void StartCompilerSetup::onGeneratorChanged(QString const& name) int StartCompilerSetup::nextId() const { - if (compilerSetup()) + if (compilerSetup()) { return NativeSetup; - if (crossCompilerSetup()) + } + if (crossCompilerSetup()) { return CrossSetup; - if (crossCompilerToolChainFile()) + } + if (crossCompilerToolChainFile()) { return ToolchainSetup; + } return -1; } @@ -515,7 +519,8 @@ QString FirstConfigure::getCCompiler() const { if (this->compilerSetup()) { return this->mNativeCompilerSetupPage->getCCompiler(); - } else if (this->crossCompilerSetup()) { + } + if (this->crossCompilerSetup()) { return this->mCrossCompilerSetupPage->getCCompiler(); } return QString(); @@ -525,7 +530,8 @@ QString FirstConfigure::getCXXCompiler() const { if (this->compilerSetup()) { return this->mNativeCompilerSetupPage->getCXXCompiler(); - } else if (this->crossCompilerSetup()) { + } + if (this->crossCompilerSetup()) { return this->mCrossCompilerSetupPage->getCXXCompiler(); } return QString(); @@ -535,7 +541,8 @@ QString FirstConfigure::getFortranCompiler() const { if (this->compilerSetup()) { return this->mNativeCompilerSetupPage->getFortranCompiler(); - } else if (this->crossCompilerSetup()) { + } + if (this->crossCompilerSetup()) { return this->mCrossCompilerSetupPage->getFortranCompiler(); } return QString(); |