From 0db41a0cde82546af5a400719e7800e548cb778c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 1 Oct 2026 13:36:20 +0100 Subject: [PATCH] Don't use != in rdcpair as not every struct will implement it * We can use !(a == b) instead for the same effect as we assume an equality operator. --- renderdoc/api/replay/rdcpair.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/api/replay/rdcpair.h b/renderdoc/api/replay/rdcpair.h index 8e0f9b9c7..9b96977f6 100644 --- a/renderdoc/api/replay/rdcpair.h +++ b/renderdoc/api/replay/rdcpair.h @@ -86,7 +86,7 @@ struct rdcpair bool operator==(const rdcpair &o) const { return first == o.first && second == o.second; } bool operator<(const rdcpair &o) const { - if(first != o.first) + if(!(first == o.first)) return first < o.first; return second < o.second; }