]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-stream.cc
Build: Clean up lilypond-book includes (issue 3559).
[lilypond.git] / lily / midi-stream.cc
index 2d9429c76753c98a8b31bd4161eaa67947b142e7..289bb1494a3b52091a7871d71eebcb4600d2b336 100644 (file)
@@ -30,7 +30,7 @@ using namespace std;
 #include "string-convert.hh"
 #include "warn.hh"
 
-Midi_stream::Midi_stream (string file_name)
+Midi_stream::Midi_stream (const string &file_name)
 {
   file_name_string_ = file_name;
   out_file_ = fopen (file_name.c_str (), "wb");
@@ -44,7 +44,7 @@ Midi_stream::~Midi_stream ()
 }
 
 void
-Midi_stream::write (string str)
+Midi_stream::write (const string &str)
 {
   size_t sz = sizeof (Byte);
   size_t n = str.length ();