Anonymous | Login | Signup for a new account | 2025-06-18 12:52 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | All Projects Issue Support Ranking | Rules | My Account |
View Revisions: Issue #3818 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0003818: Boolean expressions involving boolean constants (instead of expressing the boolean expression directly) | ||
Revision | 2020-06-07 07:19 by WubTheCaptain | ||
Steps To Reproduce | These are difficult to find with a text search and due to rarity, so I'll just point out one.src/core/tests/testdatapaths.cpp: } while (bEntryDoesExist == true); Fortunately (or unfortunately), that's also part of the code that has rotten un(der)utilized. Maybe this: Quote from src/core/fileutils.cppbool FileUtils::containsPath(const QStringList &candidates, const QString &path) { for (const QString &candidate : candidates) { if (QFileInfo(candidate) == QFileInfo(path)) return true; } return false; } Few more that I could find with grep -B 2 -A 2 -r 'return false' src/ | less. |
||
Revision | 2020-06-07 07:18 by WubTheCaptain | ||
Steps To Reproduce | These are difficult to find with a text search and due to rarity, so I'll just point out one.src/core/tests/testdatapaths.cpp: } while (bEntryDoesExist == true); Fortunately (or unfortunately), that's also part of the code that has rotten un(der)utilized. Maybe this: Quote from src/core/fileutils.cppbool FileUtils::containsPath(const QStringList &candidates, const QString &path) Few more that I could find with grep -B 2 -A 2 -r 'return false' src/ | less. |
Copyright © 2000 - 2025 MantisBT Team |