Bug 978086: Fix initialization order in LayerRenderState, r=nical

C++ requires constructors to initialize fields in the order of the
fields' definitions.
This commit is contained in:
Thomas Zimmermann 2014-03-03 09:15:00 +01:00
parent 69489486ed
commit 017247c471

View File

@ -89,7 +89,7 @@ enum LayerRenderStateFlags {
struct LayerRenderState {
LayerRenderState()
#ifdef MOZ_WIDGET_GONK
: mSurface(nullptr), mFlags(0), mHasOwnOffset(false), mTexture(nullptr)
: mSurface(nullptr), mTexture(nullptr), mFlags(0), mHasOwnOffset(false)
#endif
{}
@ -100,9 +100,9 @@ struct LayerRenderState {
TextureHost* aTexture)
: mSurface(aSurface)
, mSize(aSize)
, mTexture(aTexture)
, mFlags(aFlags)
, mHasOwnOffset(false)
, mTexture(aTexture)
{}
bool YFlipped() const