From 9168d1130ed4e57d324f03576ec41e3b59cb53e2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 28 Jan 2007 09:17:10 +0000 Subject: [PATCH] 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." --- include/osgText/String | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/osgText/String b/include/osgText/String index 23b9ff2fc..52f2bfa76 100644 --- a/include/osgText/String +++ b/include/osgText/String @@ -70,8 +70,6 @@ class OSGTEXT_EXPORT String : public VectorUInt String(const wchar_t* text) { set(text); } String(const std::string& text,Encoding encoding) { set(text,encoding); } - virtual ~String() {} - String& operator = (const String& str); void set(const std::string& str);