Rename SearchPath class Searchpath
Windows headers define SearchPath which means we have to undefine it where necessary. This is a pain and can be tricksy, so I feel renaming the class slightly is the easiest solution.
This commit is contained in:
@@ -29,10 +29,6 @@
|
||||
#include "ardour/session_directory.h"
|
||||
#include "ardour/midi_patch_manager.h"
|
||||
|
||||
#ifdef SearchPath
|
||||
#undef SearchPath
|
||||
#endif
|
||||
|
||||
#include "ardour/midi_patch_search_path.h"
|
||||
|
||||
#include "i18n.h"
|
||||
@@ -107,7 +103,7 @@ MidiPatchManager::refresh()
|
||||
_master_devices_by_model.clear();
|
||||
_all_models.clear();
|
||||
|
||||
SearchPath search_path = midi_patch_search_path ();
|
||||
Searchpath search_path = midi_patch_search_path ();
|
||||
Glib::PatternSpec pattern (string("*.midnam"));
|
||||
vector<std::string> result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user