зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470420: Change an nsAutoPtr to UniquePtr in the Loader. r=xidorn
MozReview-Commit-ID: 4KnjxHOybmG
This commit is contained in:
Родитель
da6e9b176a
Коммит
9caf38a872
|
@ -932,7 +932,7 @@ Loader::CreateSheet(nsIURI* aURI,
|
|||
MOZ_ASSERT(aSheet, "Null out param!");
|
||||
|
||||
if (!mSheets) {
|
||||
mSheets = new Sheets();
|
||||
mSheets = MakeUnique<Sheets>();
|
||||
}
|
||||
|
||||
*aSheet = nullptr;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#define mozilla_css_Loader_h
|
||||
|
||||
#include "nsIPrincipal.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCompatibility.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsDataHashtable.h"
|
||||
|
@ -26,6 +25,7 @@
|
|||
#include "mozilla/Maybe.h"
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
#include "mozilla/StyleSheet.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/net/ReferrerPolicy.h"
|
||||
|
||||
class nsICSSLoaderObserver;
|
||||
|
@ -590,7 +590,7 @@ private:
|
|||
nsDataHashtable<URIPrincipalReferrerPolicyAndCORSModeHashKey, SheetLoadData*>
|
||||
mPendingDatas; // weak refs
|
||||
};
|
||||
nsAutoPtr<Sheets> mSheets;
|
||||
UniquePtr<Sheets> mSheets;
|
||||
|
||||
// The array of posted stylesheet loaded events (SheetLoadDatas) we have.
|
||||
// Note that these are rare.
|
||||
|
|
Загрузка…
Ссылка в новой задаче