mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1222569 - fix initialization order in SourceSurfaceD2D1; r=Bas
Member fields are supposed to be initialized in the order they are declared, but the constructor of SourceSurfaceD2D1 initialized mDrawTarget prior to mDevice. This is probably harmless, but it does cause a warning on clang-cl, so let's fix it.
This commit is contained in:
parent
383397bc5b
commit
1faded305e
@ -15,8 +15,8 @@ SourceSurfaceD2D1::SourceSurfaceD2D1(ID2D1Image *aImage, ID2D1DeviceContext *aDC
|
||||
DrawTargetD2D1 *aDT)
|
||||
: mImage(aImage)
|
||||
, mDC(aDC)
|
||||
, mDrawTarget(aDT)
|
||||
, mDevice(Factory::GetD2D1Device())
|
||||
, mDrawTarget(aDT)
|
||||
{
|
||||
aImage->QueryInterface((ID2D1Bitmap1**)getter_AddRefs(mRealizedBitmap));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user