Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CompareOptions *m_pCompareOptions;
- CDiffContext::~CDiffContext()
- {
- ...
- delete m_pCompareOptions;
- ...
- }
- class CompareOptions
- {
- public:
- CompareOptions();
- CompareOptions(const CompareOptions & options);
- virtual void SetFromDiffOptions(const DIFFOPTIONS & options);
- enum WhitespaceIgnoreChoices m_ignoreWhitespace;
- bool m_bIgnoreBlankLines;
- bool m_bIgnoreCase;
- bool m_bIgnoreEOLDifference;
- };
- class DiffutilsOptions : public CompareOptions
- {
- ...
- };
- This suspicious code was found in WinMerge project by PVS-Studio static code analyzer.
- Warning message is:
- V599 The virtual destructor is not present, although the 'CompareOptions' class contains virtual functions. Merge diffcontext.cpp 90
- 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