From Mike Wittman, "This file removes the virtual destructor of osgText::String. It seemed wrong that osgText::String should have a vtable since it is treated like a value type, and any subclasses containing additional data would effectively be subject to slicing during standard usage. This stuck out as an anomaly when classifying the OSG types for C# bindings."

This commit is contained in:
Robert Osfield 2007-01-28 09:17:10 +00:00
parent 689578c13a
commit 9168d1130e

View File

@ -70,8 +70,6 @@ class OSGTEXT_EXPORT String : public VectorUInt
String(const wchar_t* text) { set(text); } String(const wchar_t* text) { set(text); }
String(const std::string& text,Encoding encoding) { set(text,encoding); } String(const std::string& text,Encoding encoding) { set(text,encoding); }
virtual ~String() {}
String& operator = (const String& str); String& operator = (const String& str);
void set(const std::string& str); void set(const std::string& str);