Bug 1225829 - Use a temporary string to avoid string type confusion via references. r=jimm

This commit is contained in:
Blake Kaplan 2015-12-10 15:31:17 -05:00
parent 7bd0037ab4
commit 95fc663831

View File

@ -7509,7 +7509,9 @@ nsContentUtils::TransferableToIPCTransferable(nsITransferable* aTransferable,
if (IsFileImage(file, type)) {
IPCDataTransferItem* item = aIPCDataTransfer->items().AppendElement();
item->flavor() = type;
SlurpFileToString(file, item->data());
nsAutoCString data;
SlurpFileToString(file, data);
item->data() = data;
}
continue;