mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
better version than prev. commit (avoid name ambiguity)
This commit is contained in:
parent
7623b4bea0
commit
8f63c81ca9
1 changed files with 2 additions and 2 deletions
|
|
@ -2257,8 +2257,8 @@ public:
|
|||
bool operator() (PluginInfoPtr a, PluginInfoPtr b) const {
|
||||
PluginInfoList::const_iterator aiter = _user.begin();
|
||||
PluginInfoList::const_iterator biter = _user.begin();
|
||||
while (aiter != _user.end()) { if ((*aiter)->name == a->name) { break; } ++aiter; }
|
||||
while (biter != _user.end()) { if ((*biter)->name == b->name) { break; } ++biter; }
|
||||
while (aiter != _user.end()) { if ((*aiter)->unique_id == a->unique_id) { break; } ++aiter; }
|
||||
while (biter != _user.end()) { if ((*biter)->unique_id == b->unique_id) { break; } ++biter; }
|
||||
|
||||
if (aiter != _user.end() && biter != _user.end()) {
|
||||
return std::distance (_user.begin(), aiter) < std::distance (_user.begin(), biter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue