]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/file-name-map.cc
Release: bump Welcome versions.
[lilypond.git] / lily / file-name-map.cc
index 05fd08e73f68409e9158a633f3ec0d9c7475bc74..6266aec3c34e0c90a3275453eb51b9d53faa8530 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -26,16 +26,16 @@ using namespace std;
 map<string, string> file_name_map_global;
 
 string
-map_file_name (string s)
+map_file_name (const string &s)
 {
   if (file_name_map_global.find (s) != file_name_map_global.end ())
-    s = file_name_map_global[s];
+    return file_name_map_global[s];
   return s;
 }
 
 LY_DEFINE (ly_add_file_name_alist, "ly:add-file-name-alist",
-          1, 0, 0, (SCM alist),
-          "Add mappings for error messages from @var{alist}.")
+           1, 0, 0, (SCM alist),
+           "Add mappings for error messages from @var{alist}.")
 {
   for (SCM s = alist; scm_is_pair (s); s = scm_cdr (s))
     {