]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.h
Don't return references from apply functions
[libs/gl.git] / source / glsl / optimize.h
index d434c68a85c1df63594dcda6294c9698573e969f..4113f21465a990e85a4fa701351b8277cec09cfe 100644 (file)
@@ -39,7 +39,7 @@ private:
 public:
        InlineableFunctionLocator();
 
-       const std::set<FunctionDeclaration *> &apply(Stage &s) { s.content.visit(*this); return inlineable; }
+       std::set<FunctionDeclaration *> apply(Stage &s) { s.content.visit(*this); return inlineable; }
 
 private:
        virtual void visit(FunctionCall &);
@@ -73,7 +73,7 @@ private:
 public:
        InlineContentInjector();
 
-       const std::string &apply(Stage &, FunctionDeclaration &, Block &, const NodeList<Statement>::iterator &, FunctionCall &);
+       std::string apply(Stage &, FunctionDeclaration &, Block &, const NodeList<Statement>::iterator &, FunctionCall &);
 
 private:
        virtual void visit(VariableReference &);