summaryrefslogtreecommitdiff
path: root/libs/ardour/panner_search_path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/panner_search_path.cc')
-rw-r--r--libs/ardour/panner_search_path.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/libs/ardour/panner_search_path.cc b/libs/ardour/panner_search_path.cc
index debc19c757..63802ffc4e 100644
--- a/libs/ardour/panner_search_path.cc
+++ b/libs/ardour/panner_search_path.cc
@@ -34,18 +34,11 @@ namespace ARDOUR {
SearchPath
panner_search_path ()
{
- SearchPath spath (user_config_directory ());
-
+ SearchPath spath(user_config_directory ());
spath += ardour_dll_directory ();
spath.add_subdirectory_to_paths(panner_dir_name);
- bool panner_path_defined = false;
- SearchPath spath_env (Glib::getenv(panner_env_variable_name, panner_path_defined));
-
- if (panner_path_defined) {
- spath += spath_env;
- }
-
+ spath += SearchPath(Glib::getenv(panner_env_variable_name));
return spath;
}