mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
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
This commit is contained in:
parent
4a99727dea
commit
539d924691
1 changed files with 1 additions and 1 deletions
|
|
@ -2410,7 +2410,7 @@ AUPluginInfo::get_presets (bool user_only) const
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<string> preset_files;
|
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) {
|
for (vector<string>::iterator x = preset_files.begin(); x != preset_files.end(); ++x) {
|
||||||
string path = *x;
|
string path = *x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue