Bug 1165731 - Remove unnecessary SetCapacity call in variant_storage_traits::storage_conversion. r=mak

This commit is contained in:
Birunthan Mohanathas 2015-05-19 10:47:25 -07:00
parent caa53b1f59
commit 1627a598b5

View File

@ -262,7 +262,6 @@ struct variant_storage_traits<uint8_t[], false>
static inline void storage_conversion(ConstructorType aBlob, StorageType* _outData)
{
_outData->Clear();
_outData->SetCapacity(aBlob.second);
(void)_outData->AppendElements(static_cast<const uint8_t *>(aBlob.first),
aBlob.second);
}