Closed Bug 1337698 Opened 9 years ago Closed 9 years ago

Use UniquePtr instead of nsAutoPtr in editor

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(3 files)

No description provided.
Comment on attachment 8834806 [details] Bug 1337698 - Part 1. PlaceholderTransaction should use UniquePtr. https://reviewboard.mozilla.org/r/110640/#review111928 ::: editor/libeditor/PlaceholderTransaction.h:16 (Diff revision 1) > #include "nsIAbsorbingTransaction.h" > #include "nsIDOMNode.h" > #include "nsCOMPtr.h" > #include "nsWeakPtr.h" > #include "nsWeakReference.h" > -#include "nsAutoPtr.h" > +#include "mozilla/UniquePtr.h" Move this line below "mozilla/EditorUtils.h".
Attachment #8834806 - Flags: review?(masayuki) → review+
Attachment #8834807 - Flags: review?(masayuki) → review+
Comment on attachment 8834808 [details] Bug 1337698 - Part 3. TypeInState should use UniquePtr. https://reviewboard.mozilla.org/r/110644/#review111932 ::: editor/libeditor/HTMLEditRules.cpp:4503 (Diff revision 1) > - nsAutoPtr<PropItem> item(mHTMLEditor->mTypeInState->TakeClearProperty()); > + UniquePtr<PropItem> item( > + Move(mHTMLEditor->mTypeInState->TakeClearProperty())); Using "=" might be easier to understand even with the line break, but up to you.
Attachment #8834808 - Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/mozilla-inbound/rev/a13c6b029abe Part 1. PlaceholderTransaction should use UniquePtr. r=masayuki https://hg.mozilla.org/integration/mozilla-inbound/rev/4748eeef4625 Part 2. HTMLEditor should use UniquePtr. r=masayuki https://hg.mozilla.org/integration/mozilla-inbound/rev/5b25ddd519bb Part 3. TypeInState should use UniquePtr. r=masayuki
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: