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:
Nathan Froyd 2015-11-05 15:22:08 -05:00
Родитель 383397bc5b
Коммит 1faded305e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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));