Passed BlendMode objects by const-reference

This commit is contained in:
Jan Haller 2014-03-16 11:58:45 +01:00
parent 330db58bc1
commit ec494babbe
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public :
/// \param theBlendMode Blend mode to use /// \param theBlendMode Blend mode to use
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
RenderStates(BlendMode theBlendMode); RenderStates(const BlendMode& theBlendMode);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Construct a default set of render states with a custom transform /// \brief Construct a default set of render states with a custom transform
@ -101,7 +101,7 @@ public :
/// \param theShader Shader to use /// \param theShader Shader to use
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
RenderStates(BlendMode theBlendMode, const Transform& theTransform, RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
const Texture* theTexture, const Shader* theShader); const Texture* theTexture, const Shader* theShader);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -56,7 +56,7 @@ shader (NULL)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
RenderStates::RenderStates(BlendMode theBlendMode) : RenderStates::RenderStates(const BlendMode& theBlendMode) :
blendMode(theBlendMode), blendMode(theBlendMode),
transform(), transform(),
texture (NULL), texture (NULL),
@ -86,7 +86,7 @@ shader (theShader)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
RenderStates::RenderStates(BlendMode theBlendMode, const Transform& theTransform, RenderStates::RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
const Texture* theTexture, const Shader* theShader) : const Texture* theTexture, const Shader* theShader) :
blendMode(theBlendMode), blendMode(theBlendMode),
transform(theTransform), transform(theTransform),