Bug 1363882 - Remove casting address of inactive member union result.hash r=francois

MozReview-Commit-ID: 3pVaVJ1EJZu
This commit is contained in:
Thomas Nguyen
2017-07-05 17:21:01 +08:00
parent 5ab2608614
commit 526e01f06e
2 changed files with 8 additions and 5 deletions

View File

@@ -1097,10 +1097,7 @@ nsUrlClassifierLookupCallback::LookupComplete(nsTArray<LookupResult>* results)
// Bug 1323953 - Send the first 4 bytes for completion no matter how
// long we matched the prefix.
nsAutoCString partialHash;
partialHash.Assign(reinterpret_cast<char*>(&result.hash.fixedLengthPrefix),
PREFIX_SIZE);
nsresult rv = completer->Complete(partialHash,
nsresult rv = completer->Complete(result.PartialHash(),
gethashUrl,
result.mTableName,
this);