Advertisement
PVS-StudioWarnings

PVS-Studio warning V640 for XuiFramework

Nov 26th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. BOOL CxStatic::SetBitmap(....)
  2. {
  3.   ....
  4.  
  5.   if (! m_pImage->CreateFromHBITMAP(hBitmap) )
  6.     delete m_pImage; m_pImage = NULL;
  7.     return FALSE;
  8.  
  9.   ....
  10. }
  11.  
  12. This suspicious code was found in XuiFramework project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V640 The code's operational logic does not correspond with its formatting. The second statement will always be executed. It is possible that curly brackets are missing. cxstatic.cpp 381
  15.  
  16. 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