Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct tagRECT
- {
- LONG left;
- LONG top;
- LONG right;
- LONG bottom;
- } RECT, *PRECT, NEAR *NPRECT, FAR *LPRECT;
- bool
- operator <(const RECT _X, const RECT _Y)
- {
- return _X.top < _Y.top;
- }
- bool
- operator >(const RECT _X, const RECT _Y)
- {
- return _X.top > _Y.top;
- }
- This suspicious code was found in InstantVNC project by PVS-Studio static code analyzer.
- Warning message is:
- V801 Decreased performance. It is better to redefine the first function argument as a reference. Consider replacing 'const .. _X' with 'const .. &_X'. miniWinVNC rectlist.cpp 32
- 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