From 77d5df9b1b99e74df1e98aa04a4f4eb58bae1bbc Mon Sep 17 00:00:00 2001 From: cutealien Date: Tue, 26 Apr 2022 18:40:44 +0000 Subject: [PATCH] Remove virtual destructor for IShader I had somewhat rashly removed operator = in [r6280] But since c++11 implicit defined copy assignment operator is deprecated when a user-declared destructor exists. Still... alternative would be adding copy assignment operator but neither that nor the virtual destructor seem to be needed. So rather removind destructor which seems to add an unnecessary virtual function table for it (seems to be just used like a POD throughout the code) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6362 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/IQ3Shader.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/IQ3Shader.h b/include/IQ3Shader.h index 8541a7f..68e0e11 100644 --- a/include/IQ3Shader.h +++ b/include/IQ3Shader.h @@ -637,8 +637,6 @@ namespace quake3 { IShader () : ID ( 0 ), VarGroup ( 0 ) {} - virtual ~IShader () {} - bool operator == (const IShader &other ) const {