mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
d73f500b5f
commit
486543ab25
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user