mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1281499
- Add missing include and namespace for MakeUnique<> r=mstange
MozReview-Commit-ID: DpBZrnx47g8 --HG-- extra : rebase_source : d0acf2ae074020fc8b1ffc1d51f80058b7f92c99
This commit is contained in:
parent
4e79263a61
commit
facb2f088c
@ -36,6 +36,7 @@ Notes to self:
|
||||
#include "nsIWeakReferenceUtils.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsILoadContext.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsTransferable, nsITransferable)
|
||||
|
||||
@ -183,7 +184,7 @@ DataStruct::ReadCache(nsISupports** aData, uint32_t* aDataLen)
|
||||
|
||||
uint32_t size = uint32_t(fileSize);
|
||||
// create new memory for the large clipboard data
|
||||
auto data = MakeUnique<char[]>(size);
|
||||
auto data = mozilla::MakeUnique<char[]>(size);
|
||||
if ( !data )
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user