diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 05:43:18 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 05:43:18 -0400 |
commit | 516fd67d506b8dd3c2721dfd1aa1bbef4a2eda6f (patch) | |
tree | aea649009c0ef563041ded0cb0c5d397568eab07 /editor/libeditor/EditorBase.h | |
parent | 17f7e1c8c6fca351174bdbd73981aa8e44d0f9da (diff) | |
download | UXP-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/EditorBase.h')
-rw-r--r-- | editor/libeditor/EditorBase.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/libeditor/EditorBase.h b/editor/libeditor/EditorBase.h index 8680b57ae..157623287 100644 --- a/editor/libeditor/EditorBase.h +++ b/editor/libeditor/EditorBase.h @@ -11,6 +11,7 @@ #include "mozilla/OwningNonNull.h" // for OwningNonNull #include "mozilla/SelectionState.h" // for RangeUpdater, etc. #include "mozilla/StyleSheet.h" // for StyleSheet +#include "mozilla/UniquePtr.h" #include "mozilla/dom/Text.h" #include "nsCOMPtr.h" // for already_AddRefed, nsCOMPtr #include "nsCycleCollectionParticipant.h" @@ -980,7 +981,7 @@ protected: // Name of placeholder transaction. nsIAtom* mPlaceHolderName; // Saved selection state for placeholder transaction batching. - SelectionState* mSelState; + mozilla::UniquePtr<SelectionState> mSelState; nsString* mPhonetic; // IME composition this is not null between compositionstart and // compositionend. |