зеркало из https://github.com/mozilla/gecko-dev.git
b=778031 remove unnecessary ScopedXErrorHandler::GetError interface r=cjones
--HG-- extra : transplant_source : %FE%EC%0A%24%1B%8A%B3%D2%94%F6%2B%23%E3%A9R%8Df%90%FF%17
This commit is contained in:
Родитель
f8fc648682
Коммит
cbf24500d0
|
@ -78,12 +78,7 @@ bool
|
|||
ScopedXErrorHandler::SyncAndGetError(Display *dpy, XErrorEvent *ev)
|
||||
{
|
||||
FinishX(dpy);
|
||||
return GetError(ev);
|
||||
}
|
||||
|
||||
bool
|
||||
ScopedXErrorHandler::GetError(XErrorEvent *ev)
|
||||
{
|
||||
bool retval = mXError.mError.error_code != 0;
|
||||
if (ev)
|
||||
*ev = mXError.mError;
|
||||
|
|
|
@ -137,13 +137,6 @@ public:
|
|||
* the first one will be returned.
|
||||
*/
|
||||
bool SyncAndGetError(Display *dpy, XErrorEvent *ev = nullptr);
|
||||
|
||||
/** Like SyncAndGetError, but does not sync. Faster, but only reliably catches errors in synchronous calls.
|
||||
*
|
||||
* \param ev this optional parameter, if set, will be filled with the XErrorEvent object. If multiple errors occurred,
|
||||
* the first one will be returned.
|
||||
*/
|
||||
bool GetError(XErrorEvent *ev = nullptr);
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
Загрузка…
Ссылка в новой задаче