Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Notepad_plus::getHtmlXmlEncoding(....) const
- {
- ...
- if (langT != L_XML && langT != L_HTML && langT == L_PHP)
- return -1;
- ...
- }
- Currently this code is equivalent to if (langT == L_PHP). The programmer probably wanted to write this code: if (langT != L_XML && langT != L_HTML && langT != L_PHP).
- This suspicious code was found in Notepad++ project by PVS-Studio static code analyzer.
- Warning message is:
- V590 Consider inspecting this expression. The expression is excessive or contains a misprint. Notepad++ notepad_plus.cpp 853
- 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