Bug 826164 - Enable FAIL_ON_WARNINGS on MSVC in view/. r=roc

This commit is contained in:
Masatoshi Kimura 2013-01-03 21:27:19 +09:00
parent 0192177372
commit b3bcd5b6a1
2 changed files with 1 additions and 3 deletions

View File

@ -16,9 +16,7 @@ FORCE_STATIC_LIB = 1
MODULE_NAME = nsViewModule
GRE_MODULE = 1
LIBXUL_LIBRARY = 1
ifndef _MSC_VER
FAIL_ON_WARNINGS := 1
endif # !_MSC_VER
DEFINES += -D_IMPL_NS_LAYOUT

View File

@ -70,8 +70,8 @@ uint32_t nsViewManager::gLastUserEventTime = 0;
nsViewManager::nsViewManager()
: mDelayedResize(NSCOORD_NONE, NSCOORD_NONE)
, mRootViewManager(this)
{
mRootViewManager = this;
if (gViewManagers == nullptr) {
NS_ASSERTION(mVMCount == 0, "View Manager count is incorrect");
// Create an array to hold a list of view managers