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:
Alexandre Lissy 2016-06-22 17:38:40 +02:00
parent 4e79263a61
commit facb2f088c

View File

@ -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;