]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Don't return references from apply functions
[libs/gl.git] / source / glsl / debug.cpp
index 8bdce457f0d1c318d56dd193c57309f30bdd0646..2f243dc73dc0d25518ce341597749f4255f45d8a 100644 (file)
@@ -8,7 +8,7 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
-const std::string &DumpTree::apply(Stage &stage)
+std::string DumpTree::apply(Stage &stage)
 {
        formatted = format("Stage: %s\n", Stage::get_stage_name(stage.type));
        tree.push_back(BRANCH);