зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
383397bc5b
Коммит
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));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче