Bug 1012814 part 1: Use size_t instead of uint32_t, for value compared against nsTArray::NoIndex, in nsTransferable.cpp. r=bjacob

This commit is contained in:
Daniel Holbert 2014-05-20 12:43:57 -07:00
parent d73f500b5f
commit 486543ab25

View File

@ -463,8 +463,8 @@ nsTransferable::RemoveDataFlavor(const char *aDataFlavor)
{
MOZ_ASSERT(mInitialized);
uint32_t idx;
if ((idx = GetDataForFlavor(mDataArray, aDataFlavor)) != mDataArray.NoIndex) {
size_t idx = GetDataForFlavor(mDataArray, aDataFlavor);
if (idx != mDataArray.NoIndex) {
mDataArray.RemoveElementAt (idx);
return NS_OK;
}