mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 865715 - eliminate uninitialized-variable warning in nsGUIEventIPC.h. r=smaug
This commit is contained in:
parent
2f7f9ec77a
commit
7cb1f429d4
@ -262,17 +262,18 @@ struct ParamTraits<nsKeyEvent>
|
||||
|
||||
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
||||
{
|
||||
bool rv;
|
||||
uint32_t keyNameIndex;
|
||||
rv = ReadParam(aMsg, aIter, static_cast<nsInputEvent*>(aResult)) &&
|
||||
ReadParam(aMsg, aIter, &keyNameIndex) &&
|
||||
ReadParam(aMsg, aIter, &aResult->keyCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->charCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->isChar) &&
|
||||
ReadParam(aMsg, aIter, &aResult->location);
|
||||
aResult->mKeyNameIndex =
|
||||
static_cast<mozilla::widget::KeyNameIndex>(keyNameIndex);
|
||||
return rv;
|
||||
if (ReadParam(aMsg, aIter, static_cast<nsInputEvent*>(aResult)) &&
|
||||
ReadParam(aMsg, aIter, &keyNameIndex) &&
|
||||
ReadParam(aMsg, aIter, &aResult->keyCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->charCode) &&
|
||||
ReadParam(aMsg, aIter, &aResult->isChar) &&
|
||||
ReadParam(aMsg, aIter, &aResult->location)) {
|
||||
aResult->mKeyNameIndex =
|
||||
static_cast<mozilla::widget::KeyNameIndex>(keyNameIndex);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user