summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/HTMLEditor.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 05:43:18 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 05:43:18 -0400
commit516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f (patch)
treeaea649009c0ef563041ded0cb0c5d397568eab07 /editor/libeditor/HTMLEditor.cpp
parent17f7e1c8c6fca351174bdbd73981aa8e44d0f9da (diff)
downloadUXP-516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f.tar
UXP-516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f.tar.gz
UXP-516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f.tar.lz
UXP-516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f.tar.xz
UXP-516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f.zip
Bug 1337698 - Use UniquePtr instead of nsAutoPtr in editor
* PlaceholderTransaction should use UniquePtr * HTMLEditor should use UniquePtr * TypeInState should use UniquePtr Tag #1375
Diffstat (limited to 'editor/libeditor/HTMLEditor.cpp')
-rw-r--r--editor/libeditor/HTMLEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/libeditor/HTMLEditor.cpp b/editor/libeditor/HTMLEditor.cpp
index 73dd1673b..56e607200 100644
--- a/editor/libeditor/HTMLEditor.cpp
+++ b/editor/libeditor/HTMLEditor.cpp
@@ -287,7 +287,7 @@ HTMLEditor::Init(nsIDOMDocument* aDoc,
}
// Init the HTML-CSS utils
- mCSSEditUtils = new CSSEditUtils(this);
+ mCSSEditUtils = MakeUnique<CSSEditUtils>(this);
// disable links
nsCOMPtr<nsIPresShell> presShell = GetPresShell();