Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class xmlInputCharData {
- public:
- static bool isBaseChar(wchar_t l) {
- ....
- if (l >= 0x06BA && l <= 0x06BE) return true;
- if (l >= 0x06C0 && l <= 0x06CE) return true;
- if (l >= 0x06D0 && l <= 0x06D3) return true;
- if (l == 0x06D5) return true; <<<---
- if (l >= 0x06E5 && l <= 0x06E6) return true;
- if (l >= 0x0905 && l <= 0x0939) return true;
- if (l == 0x06D5) return true; <<<---
- if (l >= 0x0958 && l <= 0x0961) return true;
- if (l >= 0x0985 && l <= 0x098C) return true;
- if (l >= 0x098F && l <= 0x0990) return true;
- ....
- }
- This suspicious code was found in RunAsAdmin project by PVS-Studio static code analyzer.
- Warning message is:
- V649 There are two 'if' statements with identical conditional expressions. The first 'if' statement contains function return. This means that the second 'if' statement is senseless. Check lines: 67, 70. cannonical_xml.h 70
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment