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

This commit is contained in:
Ms2ger 2012-12-02 09:56:54 +01:00
parent 4f3a54421a
commit c19c4258e5
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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) {