PVS-StudioWarnings

PVS-Studio warning V519 for XuiFramework

Nov 17th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. CResizeDlg::CResizeDlg(....)
  2.   : CDialog(resID,pParent)
  3. {
  4.   m_xSt = CST_RESIZE;
  5.   m_xSt = CST_RESIZE;
  6.   m_xMin = 32;
  7.   m_yMin = 32;
  8.   m_nDelaySide = 0;
  9. }
  10.  
  11. This suspicious code was found in XuiFramework project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V519 The 'm_xSt' object is assigned values twice successively. Perhaps this is a mistake. Borne resizedlg.cpp 244
  14.  
  15. 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