summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/AddCacheEntry.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-05 20:12:36 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-06 12:42:54 (GMT)
commit62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c (patch)
treecd026021827cb17c148aeee234fb957ac6f4fc86 /Source/QtDialog/AddCacheEntry.cxx
parentbfdf1322e7638687c96b323b1df20fd9c08b3044 (diff)
downloadCMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.zip
CMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.tar.gz
CMake-62c5f9afc3bbe1e83ee63a1a8b9fe56b30c4849c.tar.bz2
QtDialog: fix clang-tidy warnings
Diffstat (limited to 'Source/QtDialog/AddCacheEntry.cxx')
-rw-r--r--Source/QtDialog/AddCacheEntry.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/QtDialog/AddCacheEntry.cxx b/Source/QtDialog/AddCacheEntry.cxx
index dc7a4b0..a94c54b 100644
--- a/Source/QtDialog/AddCacheEntry.cxx
+++ b/Source/QtDialog/AddCacheEntry.cxx
@@ -64,7 +64,8 @@ QVariant AddCacheEntry::value() const
QWidget* w = this->StackedWidget->currentWidget();
if (qobject_cast<QLineEdit*>(w)) {
return static_cast<QLineEdit*>(w)->text();
- } else if (qobject_cast<QCheckBox*>(w)) {
+ }
+ if (qobject_cast<QCheckBox*>(w)) {
return static_cast<QCheckBox*>(w)->isChecked();
}
return QVariant();