Cleanup: avoid function call for pointer compare
[blender.git] / source / blender / blenlib / intern / BLI_ghash_utils.c
index a0d9fefe4654ae1ce90f26ec53341e86be5d6b24..053f177939c923054ad79373c6747de851e6f415 100644 (file)
@@ -203,8 +203,8 @@ bool BLI_ghashutil_paircmp(const void *a, const void *b)
        const GHashPair *A = a;
        const GHashPair *B = b;
 
        const GHashPair *A = a;
        const GHashPair *B = b;
 
-       return (BLI_ghashutil_ptrcmp(A->first, B->first) ||
-               BLI_ghashutil_ptrcmp(A->second, B->second));
+       return ((A->first != B->first) ||
+               (A->second != B->second));
 }
 
 void BLI_ghashutil_pairfree(void *ptr)
 }
 
 void BLI_ghashutil_pairfree(void *ptr)