Advertisement
PVS-StudioWarnings

PVS-Studio warning V599 for TortoiseGIT

Nov 26th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. class Command
  2. {
  3.   virtual bool Execute() = 0;
  4.   ....
  5. };
  6.  
  7. class SVNIgnoreCommand : public Command ....
  8. class AddCommand : public Command ....
  9. class AutoTextTestCommand : public Command ....
  10.  
  11. BOOL CTortoiseProcApp::InitInstance()
  12. {
  13.   ....
  14.   Command * cmd = server.GetCommand(....);
  15.   ....
  16.   delete cmd;
  17.   ....
  18. }
  19.  
  20. This suspicious code was found in TortoiseGIT project by PVS-Studio static code analyzer.
  21. Warning message is:
  22. V599 The virtual destructor is not present, although the 'Command' class contains virtual functions. TortoiseGitProc tortoiseproc.cpp 497
  23.  
  24. 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