Closed
Bug 1337698
Opened 9 years ago
Closed 9 years ago
Use UniquePtr instead of nsAutoPtr in editor
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(3 files)
No description provided.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 4•9 years ago
|
||
| mozreview-review | ||
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+
Comment 5•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8834807 [details]
Bug 1337698 - Part 2. HTMLEditor should use UniquePtr.
https://reviewboard.mozilla.org/r/110642/#review111930
Attachment #8834807 -
Flags: review?(masayuki) → review+
Comment 6•9 years ago
|
||
| mozreview-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
Comment 8•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a13c6b029abe
https://hg.mozilla.org/mozilla-central/rev/4748eeef4625
https://hg.mozilla.org/mozilla-central/rev/5b25ddd519bb
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•