зеркало из https://github.com/mozilla/gecko-dev.git
Bug 812096 - Fix build warnings in view/; r=roc
This commit is contained in:
Родитель
0a0b1561d2
Коммит
b89eb9212a
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче