]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/input.hh
Imported Upstream version 2.18.0
[lilypond.git] / lily / include / input.hh
index 2ae9f093eed3fa7d9cf580f25ac6e1c7825e346b..a11f8f8c1b25f787bd632aaa41bc7388eea3340f 100644 (file)
@@ -36,12 +36,12 @@ public:
   char const *end () const;
 
   void set (Source_file *, char const *, char const *);
-  void error (string) const;
-  void programming_error (string) const;
-  void non_fatal_error (string) const;
-  void warning (string) const;
-  void message (string) const;
-  void debug_output (string) const;
+  void error (const string&) const;
+  void programming_error (const string&) const;
+  void non_fatal_error (const string&) const;
+  void warning (const string&) const;
+  void message (const string&) const;
+  void debug_output (const string&) const;
   void set_spot (Input const &);
   void step_forward ();
   void set_location (Input const &, Input const &);
@@ -63,7 +63,7 @@ public:
   Input ();
 protected:
   string message_location () const;
-  string message_string (string msg) const;
+  string message_string (const string &msg) const;
 };
 
 #include "smobs.hh"