To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=56995 Issue #:|56995 Summary:|Compiling C++ UNO component with gcc4 produces lots |of "has virtual functions but non-virtual destructor" |warnings. Component:|udk Version:|OOo 2.0 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|kr Reported by:|kohei
------- Additional comments from [EMAIL PROTECTED] Sun Oct 30 14:09:12 -0700 2005 ------- When compiling a C++ UNO Component with gcc4, it will generate a lot of "has virtual functions but non-virtual destructor" warnings. This makes it very hard to see more important warnings, and should be fixed. The reason for this warning is those *.hdl files automatically generated by cppumaker contain classes with virtual methods but no virtual destructor (like the warning says ;-) ). This is not a recommended practice because, when an object of a derived class gets deleted through its base class pointer, the base class destructor gets called to delete that object, and the base class destructor releases memory for the wrong object size (size of the base class, not of the derived class). Fixing this issue will ease the pain of C++ UNO component developers. Thanks, Kohei --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]