Commit 5aa3a7b8 authored by Christopher Tenter's avatar Christopher Tenter

minor call by reference optimization

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20582 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1f0b8903
......@@ -104,7 +104,7 @@ namespace GLSL {
/** \brief Upload the source of the shader.
*/
void Shader::setSource(StringList source) {
void Shader::setSource(const StringList& source) {
if ( this->m_shaderId == 0 ) {
std::cerr << "shader not initialized" << std::endl;
......
......@@ -72,7 +72,7 @@ namespace GLSL {
public:
Shader(GLenum shaderType);
virtual ~Shader();
void setSource(StringList source);
void setSource(const StringList& source);
void setSource(const QStringList& source);
// FIXME implement StringList getSource();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment