Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CSlideBarGroup
- {
- public:
- CSlideBarGroup(CString strName = _T(""),
- INT iIconIndex = -1,
- CListBoxST* pListBox = NULL);
- CSlideBarGroup(CSlideBarGroup& Group);
- ~CSlideBarGroup();
- private:
- CString m_strName;
- CListBoxST* m_pListBox;
- int m_iIconIndex; // icon index for the image list
- ...
- }
- CSlideBarGroup::CSlideBarGroup(CString strName,
- INT iIconIndex, CListBoxST* pListBox)
- : m_strName(strName)
- , m_iIconIndex(iIconIndex)
- , m_pListBox(pListBox)
- {
- }
- CSlideBarGroup::CSlideBarGroup(CSlideBarGroup& Group)
- {
- CSlideBarGroup(
- Group.GetName(), Group.GetIconIndex(),
- Group.GetListBox());
- }
- This suspicious code was found in eMulePlus project by PVS-Studio static code analyzer.
- Warning message is:
- V603 The object was created but it is not being used. If you wish to call in-place constructor, 'new (this) CSlideBarGroup(....)' should be used. emule slidebar.cpp 18
- 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