Add overload to search array with a different type without casting

* Provided a compatible operator== overload exists, this can still be used to
  search the array.
This commit is contained in:
baldurk
2024-03-19 20:14:27 +00:00
parent 7fdff69935
commit cc52e31657
2 changed files with 18 additions and 1 deletions
@@ -655,7 +655,7 @@ void AddRecentFile(rdcarray<rdcstr> &recentList, const rdcstr &file)
return;
}
if(recentList.contains(path))
if(recentList.contains(rdcstr(path)))
recentList.removeOne(path);
recentList.push_back(path);