Benjamin D. Smedberg wrote:
nsCOMPtr<nsISupports> p2asisupports = do_QueryInterface(p2);

if (p1 == psasisupports) {

Alternatively, one can use the SameCOMIdentity helper function from nsCOMPtr.h:

  if (SameCOMIdentity(p1, p2)) {
    // equal
  }

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to