Bug 1649121: part 93) Change aTransferable to mTransferable. r=m_kato

To adhere the style-guide.

Differential Revision: https://phabricator.services.mozilla.com/D90882
This commit is contained in:
Mirko Brodesser 2020-09-24 12:37:57 +00:00
parent 96f3ba77b4
commit 759a716466

View File

@ -1071,12 +1071,15 @@ class MOZ_STACK_CLASS HTMLEditor::HTMLTransferablePreparer {
private:
const HTMLEditor& mHTMLEditor;
nsITransferable** aTransferable;
nsITransferable** mTransferable;
};
HTMLEditor::HTMLTransferablePreparer::HTMLTransferablePreparer(
const HTMLEditor& aHTMLEditor, nsITransferable** aTransferable)
: mHTMLEditor{aHTMLEditor}, aTransferable{aTransferable} {}
: mHTMLEditor{aHTMLEditor}, mTransferable{aTransferable} {
MOZ_ASSERT(mTransferable);
MOZ_ASSERT(!*mTransferable);
}
nsresult HTMLEditor::PrepareHTMLTransferable(
nsITransferable** aTransferable) const {
@ -1085,9 +1088,6 @@ nsresult HTMLEditor::PrepareHTMLTransferable(
}
nsresult HTMLEditor::HTMLTransferablePreparer::Run() {
MOZ_ASSERT(aTransferable);
MOZ_ASSERT(!*aTransferable);
// Create generic Transferable for getting the data
nsresult rv;
RefPtr<nsITransferable> transferable =
@ -1193,7 +1193,7 @@ nsresult HTMLEditor::HTMLTransferablePreparer::Run() {
NS_SUCCEEDED(rv),
"nsITransferable::AddDataFlavor(kMozTextInternal) failed, but ignored");
transferable.forget(aTransferable);
transferable.forget(mTransferable);
return NS_OK;
}