summaryrefslogtreecommitdiffstats
path: root/xpfe/appshell/nsWindowMediator.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 07:08:14 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 07:08:14 +0200
commit3dfd1412e4accfb442ddb9b83bf4e324742756c5 (patch)
tree7e95ecddc7e319c47164e175cd31f417646fad7c /xpfe/appshell/nsWindowMediator.cpp
parent61de1c80cdc6c04e71fde07cc5028af503438134 (diff)
downloadUXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.gz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.lz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.xz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.zip
Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146 https://github.com/MoonchildProductions/Pale-Moon/pull/1400
Diffstat (limited to 'xpfe/appshell/nsWindowMediator.cpp')
-rw-r--r--xpfe/appshell/nsWindowMediator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xpfe/appshell/nsWindowMediator.cpp b/xpfe/appshell/nsWindowMediator.cpp
index 6d69bc764..35ae550ae 100644
--- a/xpfe/appshell/nsWindowMediator.cpp
+++ b/xpfe/appshell/nsWindowMediator.cpp
@@ -616,12 +616,10 @@ nsWindowMediator::GetZLevel(nsIXULWindow *aWindow, uint32_t *_retval)
{
NS_ENSURE_ARG_POINTER(_retval);
*_retval = nsIXULWindow::normalZ;
+ // This can fail during window destruction.
nsWindowInfo *info = GetInfoFor(aWindow);
if (info) {
*_retval = info->mZLevel;
- } else {
- NS_WARNING("getting z level of unregistered window");
- // this goes off during window destruction
}
return NS_OK;
}