diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-06-07 03:23:46 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-06-07 03:23:46 +0000 |
commit | f3b51babe34c31ac9779dea89a0e0cb79b701e62 (patch) | |
tree | 2a6d047c0a472496d55b6695b5e5dfb34fc8a617 /libs | |
parent | ec642bb95ad46aa988a0305a92e64c63b20682d1 (diff) |
Use ARDOUR::peakfile_suffix in place of a couple of string constants
git-svn-id: svn://localhost/ardour2/trunk@1965 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session.cc | 2 | ||||
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index af66f776d0..aa2df558a2 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2769,7 +2769,7 @@ Session::peak_path_from_audio_path (string audio_path) const res = peak_dir (); res += PBD::basename_nosuffix (audio_path); - res += ".peak"; + res += peakfile_suffix; return res; } diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index c6ac609783..2eb14fc1da 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2519,7 +2519,7 @@ Session::write_favorite_dirs (FavoriteDirs & favs) static bool accept_all_non_peak_files (const string& path, void *arg) { - return (path.length() > 5 && path.find (".peak") != (path.length() - 5)); + return (path.length() > 5 && path.find (peakfile_suffix) != (path.length() - 5)); } static bool @@ -2851,7 +2851,7 @@ Session::cleanup_sources (Session::cleanup_report& rep) */ string peakpath = (*x).substr (0, (*x).find_last_of ('.')); - peakpath += ".peak"; + peakpath += peakfile_suffix; if (access (peakpath.c_str(), W_OK) == 0) { if (::unlink (peakpath.c_str()) != 0) { |