Bug 1723050 - Part 11: Replace typedef by using in dom/file/ r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D121308
This commit is contained in:
Kagami Sascha Rosylight 2021-08-06 22:02:59 +00:00
Родитель a38945c762
Коммит 87f7274763
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -41,7 +41,7 @@ class Blob : public nsSupportsWeakReference, public nsWrapperCache {
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Blob)
NS_DECLARE_STATIC_IID_ACCESSOR(NS_DOM_BLOB_IID)
typedef OwningArrayBufferViewOrArrayBufferOrBlobOrUSVString BlobPart;
using BlobPart = OwningArrayBufferViewOrArrayBufferOrBlobOrUSVString;
// This creates a Blob or a File based on the type of BlobImpl.
static Blob* Create(nsIGlobalObject* aGlobal, BlobImpl* aImpl);

Просмотреть файл

@ -108,7 +108,7 @@ class MemoryBlobImplDataOwnerMemoryReporter final : public nsIMemoryReporter {
NS_IMETHOD CollectReports(nsIHandleReportCallback* aHandleReport,
nsISupports* aData, bool aAnonymize) override {
typedef MemoryBlobImpl::DataOwner DataOwner;
using DataOwner = MemoryBlobImpl::DataOwner;
StaticMutexAutoLock lock(DataOwner::sDataOwnerMutex);

Просмотреть файл

@ -108,7 +108,7 @@ class MemoryBlobImpl final : public BaseBlobImpl {
public nsISeekableStream,
public nsIIPCSerializableInputStream,
public nsICloneableInputStream {
typedef MemoryBlobImpl::DataOwner DataOwner;
using DataOwner = MemoryBlobImpl::DataOwner;
public:
static nsresult Create(DataOwner* aDataOwner, uint32_t aStart,