فهرست منبع

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

Thomas Fischer 11 سال پیش
والد
کامیت
004f04660b
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  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 )
    {
    }