]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.h
Don't return references from apply functions
[libs/gl.git] / source / glsl / output.h
index ef9369876b46c00221ad6e33093c6e76153fee93..1e59a445ebdd1f16eead08246ac98196b3a286ca 100644 (file)
@@ -25,8 +25,8 @@ private:
 public:
        Formatter();
 
-       const std::string &apply(Stage &);
-       const std::string &apply(Node &n) { n.visit(*this); return formatted; }
+       std::string apply(Stage &);
+       std::string apply(Node &n) { n.visit(*this); return formatted; }
 
 private:
        void append(const std::string &);