From 49a65a5200ae656d85632dfbaff09b58c2dbac18 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Mon, 2 May 2016 11:11:45 +0800 Subject: [PATCH] Bug 1267524 Part 2 - Use member initializer list for nsStyleXUL. r=heycam MozReview-Commit-ID: FHb0yTvYAXR --HG-- extra : rebase_source : 6158f8d7ec97ef93dd0ff7efedea2c0bfb65b10f --- layout/style/nsStyleStruct.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index 92456eaf2ef8..9625ed464988 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -757,18 +757,18 @@ nsStyleList::sNoneQuotes; // nsStyleXUL // nsStyleXUL::nsStyleXUL(StyleStructContext aContext) -{ + : mBoxFlex(0.0f) + , mBoxOrdinal(1) + , mBoxAlign(NS_STYLE_BOX_ALIGN_STRETCH) + , mBoxDirection(NS_STYLE_BOX_DIRECTION_NORMAL) + , mBoxOrient(NS_STYLE_BOX_ORIENT_HORIZONTAL) + , mBoxPack(NS_STYLE_BOX_PACK_START) + , mStretchStack(true) +{ MOZ_COUNT_CTOR(nsStyleXUL); - mBoxAlign = NS_STYLE_BOX_ALIGN_STRETCH; - mBoxDirection = NS_STYLE_BOX_DIRECTION_NORMAL; - mBoxFlex = 0.0f; - mBoxOrient = NS_STYLE_BOX_ORIENT_HORIZONTAL; - mBoxPack = NS_STYLE_BOX_PACK_START; - mBoxOrdinal = 1; - mStretchStack = true; } -nsStyleXUL::~nsStyleXUL() +nsStyleXUL::~nsStyleXUL() { MOZ_COUNT_DTOR(nsStyleXUL); }