mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
32e5d940b4
commit
d058c28f98
@ -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