X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffunction-documentation.cc;fp=lily%2Ffunction-documentation.cc;h=ec2355733387d435b561392f50cf9e0637d515a8;hb=0ac07f31e0f95fc18e5916ce756b9c746af7cc58;hp=b1384076b1ed2dc8f7a726beaeaa46753ac71dcc;hpb=2f1263e2ccdddcac2eb9f7d8ce2ed92867d3d160;p=lilypond.git diff --git a/lily/function-documentation.cc b/lily/function-documentation.cc index b1384076b1..ec23557333 100644 --- a/lily/function-documentation.cc +++ b/lily/function-documentation.cc @@ -27,7 +27,7 @@ using namespace std; static SCM doc_hash_table; void -ly_check_name (string cxx, string scm_name) +ly_check_name (const string &cxx, const string &scm_name) { string mangle = mangle_cxx_identifier (cxx); if (mangle != scm_name) @@ -38,9 +38,9 @@ ly_check_name (string cxx, string scm_name) void ly_add_function_documentation (SCM func, - string fname, - string varlist, - string doc) + const string &fname, + const string &varlist, + const string &doc) { if (doc == "") return; @@ -70,7 +70,7 @@ map type_names; void ly_add_type_predicate (void *ptr, - string name) + const string &name) { type_names[ptr] = name; }