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:
baldurk
2017-04-07 11:53:20 +01:00
parent f6c045f473
commit 43eb5072b4
8 changed files with 77 additions and 17 deletions
+1 -1
View File
@@ -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 =