PVS-StudioWarnings

PVS-Studio warning V510 for TortoiseSVN

Nov 13th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. class CTSVNPath
  2. {
  3.   ....
  4. private:
  5.   mutable CString m_sBackslashPath;
  6.   mutable CString m_sLongBackslashPath;
  7.   mutable CString m_sFwdslashPath;
  8.   ....
  9. };
  10.  
  11. const FileStatusCacheEntry * SVNFolderStatus::BuildCache(
  12.   const CTSVNPath& filepath, ....)
  13. {
  14.   ....
  15.   CTraceToOutputDebugString::Instance() (_T(__FUNCTION__)
  16.     _T(": building cache for %s\n"), filepath);
  17.   ....
  18. }
  19.  
  20. This suspicious code was found in TortoiseSVN project by PVS-Studio static code analyzer.
  21. Warning message is:
  22. V510 The 'operator()' function is not expected to receive class-type variable as second actual argument. svnfolderstatus.cpp 150
  23.  
  24. 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