X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffunction-documentation.cc;h=cce8c666475f95b72e90509dbba8a5a1f4e82241;hb=9e781b7dc83b60a543ce218aa1a5f139f74c760f;hp=b1384076b1ed2dc8f7a726beaeaa46753ac71dcc;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/function-documentation.cc b/lily/function-documentation.cc index b1384076b1..cce8c66647 100644 --- a/lily/function-documentation.cc +++ b/lily/function-documentation.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2012 Han-Wen Nienhuys + Copyright (C) 2004--2014 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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; }