зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336011 part.3 Create an alias of the type of mDocStateListeners r=smaug
MozReview-Commit-ID: L0TczDcH4t8 --HG-- extra : rebase_source : 0a250056797c6fb760e7aa674565d3e71df6f568
This commit is contained in:
Родитель
a5c23d8c73
Коммит
431e1a12b3
|
@ -2622,8 +2622,7 @@ EditorBase::NotifyDocumentListeners(
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsTArray<OwningNonNull<nsIDocumentStateListener>>
|
||||
listeners(mDocStateListeners);
|
||||
AutoDocumentStateListenerArray listeners(mDocStateListeners);
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
switch (aNotificationType) {
|
||||
|
|
|
@ -1011,7 +1011,9 @@ protected:
|
|||
AutoEditorObserverArray;
|
||||
AutoEditorObserverArray mEditorObservers;
|
||||
// Listen to overall doc state (dirty or not, just created, etc.).
|
||||
nsTArray<OwningNonNull<nsIDocumentStateListener>> mDocStateListeners;
|
||||
typedef AutoTArray<OwningNonNull<nsIDocumentStateListener>, 1>
|
||||
AutoDocumentStateListenerArray;
|
||||
AutoDocumentStateListenerArray mDocStateListeners;
|
||||
|
||||
// Cached selection for AutoSelectionRestorer.
|
||||
SelectionState mSavedSel;
|
||||
|
|
Загрузка…
Ссылка в новой задаче