summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/RegexExplorer.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-06-01 12:14:45 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-06-02 11:37:56 (GMT)
commited2fe558b03e006d708c0fb210f218d9a80ffc01 (patch)
treefa065408e1c2d5f55ccd05eb96b27cebcdbaf2f0 /Source/QtDialog/RegexExplorer.cxx
parent44f1744bed50e6ef47b179810a7533538b31722b (diff)
downloadCMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.zip
CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.gz
CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.bz2
CursesDialog: resolve clang-tidy warnings
Fixes: - unnecessary bool expression (cmCursesMainForm) - removes a duplicate if/else branch (RegexExplorer) - collapses redundant if/else branch logic (CMakeSetupDialog and cmCursesStringWidget)
Diffstat (limited to 'Source/QtDialog/RegexExplorer.cxx')
-rw-r--r--Source/QtDialog/RegexExplorer.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/QtDialog/RegexExplorer.cxx b/Source/QtDialog/RegexExplorer.cxx
index 746fd8a..6194940 100644
--- a/Source/QtDialog/RegexExplorer.cxx
+++ b/Source/QtDialog/RegexExplorer.cxx
@@ -147,9 +147,6 @@ bool RegexExplorer::stripEscapes(std::string& source)
} else if (nextc == 'n') {
result.append(1, '\n');
in++;
- } else if (nextc == 't') {
- result.append(1, '\t');
- in++;
} else if (isalnum(nextc) || nextc == '\0') {
return false;
} else {