Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string _server;
- bool operator<( const ServerAndQuery& other ) const {
- if ( ! _orderObject.isEmpty() )
- return _orderObject.woCompare( other._orderObject ) < 0;
- if ( _server < other._server )
- return true;
- if ( other._server > _server )
- return false;
- return _extra.woCompare( other._extra ) < 0;
- }
- "A<B" is the same as "B>A".
- This suspicious code was found in MongoDB project by PVS-Studio static code analyzer.
- Warning message is:
- V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 44, 46. parallel.h 46
- 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
Advertisement