X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffile-name-map.cc;h=6266aec3c34e0c90a3275453eb51b9d53faa8530;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=6074f3a1da30f45790e94544b38d6b8e50e9c912;hpb=4bb29573149a0ffa1f881c5e38a0fe68e9e76b67;p=lilypond.git diff --git a/lily/file-name-map.cc b/lily/file-name-map.cc index 6074f3a1da..6266aec3c3 100644 --- a/lily/file-name-map.cc +++ b/lily/file-name-map.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2011 Han-Wen Nienhuys + Copyright (C) 2005--2015 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 @@ -26,10 +26,10 @@ using namespace std; map 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; }