Skip to content
Snippets Groups Projects
Commit b89eb921 authored by Ms2ger's avatar Ms2ger
Browse files

Bug 812096 - Fix build warnings in view/; r=roc

parent 0a0b1561
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment