Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Command
- {
- virtual bool Execute() = 0;
- ....
- };
- class SVNIgnoreCommand : public Command ....
- class AddCommand : public Command ....
- class AutoTextTestCommand : public Command ....
- BOOL CTortoiseProcApp::InitInstance()
- {
- ....
- Command * cmd = server.GetCommand(....);
- ....
- delete cmd;
- ....
- }
- This suspicious code was found in TortoiseGIT project by PVS-Studio static code analyzer.
- Warning message is:
- V599 The virtual destructor is not present, although the 'Command' class contains virtual functions. TortoiseGitProc tortoiseproc.cpp 497
- 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