X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Ffile-path.hh;fp=flower%2Finclude%2Ffile-path.hh;h=8c8049391d9b5e1c1834643752b5818cf776c329;hb=0ac07f31e0f95fc18e5916ce756b9c746af7cc58;hp=29ca17f24638a81dd3f4cf988ac5c7c21d5748af;hpb=2f1263e2ccdddcac2eb9f7d8ce2ed92867d3d160;p=lilypond.git diff --git a/flower/include/file-path.hh b/flower/include/file-path.hh index 29ca17f246..8c8049391d 100644 --- a/flower/include/file-path.hh +++ b/flower/include/file-path.hh @@ -38,16 +38,16 @@ class File_path public: vector directories () const; - string find (string name) const; - string find (string name, char const *extensions[]); + string find (const string &name) const; + string find (const string &name, char const *extensions[]); string to_string () const; bool try_append (string str); - void append (string str); - void parse_path (string); - void prepend (string str); + void append (const string&); + void parse_path (const string&); + void prepend (const string&); }; -bool is_file (string file_name); +bool is_file (const string &file_name); bool is_dir (string file_name); #endif /* FILE_PATH */