Przeglądaj źródła

refactored the constructor to not use a default reference to a static member

Thomas Fischer 11 lat temu
rodzic
commit
004f04660b
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      Engine/source/renderInstance/renderPassManager.h

+ 7 - 2
Engine/source/renderInstance/renderPassManager.h

@@ -65,12 +65,17 @@ protected:
 
 public:  
 
-   RenderInstType( const RenderInstType &type = Invalid ) 
+   RenderInstType()
+      :  mName( Invalid.mName )
+   {
+   }
+
+   RenderInstType( const RenderInstType &type )
       :  mName( type.mName )
    {
    }
 
-   RenderInstType( const String &name ) 
+   RenderInstType( const String &name )
       :  mName( name )
    {
    }