mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user