X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Ffile-name.cc;h=bb07ebccd0f03576bedd90f0e206158d9bcf4955;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=0f0bb61270beee42468ec305e31fb0b4106e06fa;hpb=e7c33f14dc0ae7b43b21db16fd0ce48934049a57;p=lilypond.git diff --git a/flower/file-name.cc b/flower/file-name.cc index 0f0bb61270..bb07ebccd0 100644 --- a/flower/file-name.cc +++ b/flower/file-name.cc @@ -3,7 +3,7 @@ source file of the Flower Library - (c) 1997--2007 Han-Wen Nienhuys + (c) 1997--2008 Han-Wen Nienhuys Jan Nieuwenhuizen */ @@ -12,6 +12,7 @@ #include #include #include +#include using namespace std; @@ -60,8 +61,8 @@ static /* avoid warning */ string slashify (string file_name) { - replace_all (file_name, '\\', '/'); - replace_all (file_name, string ("//"), "/"); + replace_all (&file_name, '\\', '/'); + replace_all (&file_name, string ("//"), "/"); return file_name; } @@ -184,7 +185,7 @@ File_name::canonicalized () const { File_name c = *this; - replace_all (c.dir_, string ("//"), string ("/")); + replace_all (&c.dir_, string ("//"), string ("/")); vector components = string_split (c.dir_, '/'); vector new_components;