13
0

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:
Paul Davis 2016-01-09 14:03:13 -05:00
parent 4a99727dea
commit 539d924691

View File

@ -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;