mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 812096 - Fix build warnings in view/; r=roc
This commit is contained in:
parent
4f3a54421a
commit
c19c4258e5
@ -16,6 +16,7 @@ FORCE_STATIC_LIB = 1
|
||||
MODULE_NAME = nsViewModule
|
||||
GRE_MODULE = 1
|
||||
LIBXUL_LIBRARY = 1
|
||||
FAIL_ON_WARNINGS := 1
|
||||
|
||||
DEFINES += -D_IMPL_NS_LAYOUT
|
||||
|
||||
|
@ -14,9 +14,12 @@
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/Likely.h"
|
||||
#include "mozilla/Util.h"
|
||||
#include "nsXULPopupManager.h"
|
||||
#include "nsIWidgetListener.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
nsView::nsView(nsViewManager* aViewManager, nsViewVisibility aVisibility)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsView);
|
||||
@ -407,7 +410,7 @@ void nsView::RemoveChild(nsView *child)
|
||||
{
|
||||
nsView* prevKid = nullptr;
|
||||
nsView* kid = mFirstChild;
|
||||
bool found = false;
|
||||
DebugOnly<bool> found = false;
|
||||
while (nullptr != kid) {
|
||||
if (kid == child) {
|
||||
if (nullptr != prevKid) {
|
||||
|
Loading…
Reference in New Issue
Block a user