diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-09 14:03:13 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-09 14:03:13 -0500 |
commit | 539d924691d163fda6c6b66e64683a4fe092228c (patch) | |
tree | d1db8a74b1828e6947ce65a3daa2692fbf06dbd3 | |
parent | 4a99727dea0763df7142026494aea7bb280d254d (diff) |
fix const-ness issue.
This one is debatable, but since we know that the filter method is const with respect to the AUPluginInfo
object, the const_cast<> seems like the simplest AND cleanest solution
-rw-r--r-- | libs/ardour/audio_unit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 1c482736b8..779bda5348 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -2410,7 +2410,7 @@ AUPluginInfo::get_presets (bool user_only) const } vector<string> preset_files; - find_files_matching_filter (preset_files, preset_search_path, au_preset_filter, this, true, true, true); + find_files_matching_filter (preset_files, preset_search_path, au_preset_filter, const_cast<AUPluginInfo*>(this), true, true, true); for (vector<string>::iterator x = preset_files.begin(); x != preset_files.end(); ++x) { string path = *x; |