]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/includable-lexer.cc
Update d/copyright
[lilypond.git] / lily / includable-lexer.cc
index 806eb1512f198254a50fe9e1c83d11c54b3b88ce..8c00965744f3c327a5576241fe32a274cb2a08d5 100644 (file)
@@ -59,7 +59,7 @@ Includable_lexer::Includable_lexer ()
 
 /** Set the new input file to NAME, remember old file.  */
 void
-Includable_lexer::new_input (string name, Sources *sources)
+Includable_lexer::new_input (const string &name, Sources *sources)
 {
   string current_dir = dir_name (main_input_name_);
   if (relative_includes)
@@ -94,7 +94,7 @@ Includable_lexer::new_input (string name, Sources *sources)
 }
 
 void
-Includable_lexer::new_input (string name, string data, Sources *sources)
+Includable_lexer::new_input (const string &name, string data, Sources *sources)
 {
   Source_file *file = new Source_file (name, data);
   sources->add (file);