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:
parent
689578c13a
commit
9168d1130e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user