mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Remove 'magic constant' use of ~0U as invalid/skip/no result.
* In python it's not as quick to get ~0U since ints aren't unsigned or fixed size. Adding named constants makes it easier for people to use the right values, and C++ users can still pass ~0U.
This commit is contained in:
@@ -232,7 +232,7 @@ void RemoteManager::refreshHost(QTreeWidgetItem *node)
|
||||
|
||||
nextIdent = RENDERDOC_EnumerateRemoteTargets(hostnameBytes.data(), nextIdent);
|
||||
|
||||
if(nextIdent == ~0U || prevIdent >= nextIdent)
|
||||
if(nextIdent == 0 || prevIdent >= nextIdent)
|
||||
break;
|
||||
|
||||
ITargetControl *conn =
|
||||
|
||||
Reference in New Issue
Block a user