Bug 1415470 - a11y: Fix VS2017 initializer list order warnings. r=yzen

Reorder DocAccessibleParent's and DocAccessibleChild's constructor initializer lists to fix these VS2017 warnings:

a11y/DocAccessibleParent.h(32): warning C5038: data member 'mozilla::a11y::DocAccessibleParent::mShutdown' will be initialized after data member 'mozilla::a11y::DocAccessibleParent::mEmulatedWindowHandle'

accessible/ipc/win/DocAccessibleChild.cpp(22): warning C5038: data member 'mozilla::a11y::DocAccessibleChild::mEmulatedWindowHandle' will be initialized after data member 'mozilla::a11y::DocAccessibleChild::mIsRemoteConstructed'

MozReview-Commit-ID: 8flWtpe13ob

--HG--
extra : rebase_source : 96528a886c099897df691623948d755eecda119f
This commit is contained in:
Chris Peterson 2017-11-06 23:54:53 -08:00
Родитель 73712f7d05
Коммит 0c6b205207
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -29,10 +29,10 @@ class DocAccessibleParent : public ProxyAccessible,
public:
DocAccessibleParent() :
ProxyAccessible(this), mParentDoc(kNoParentDoc),
mTopLevel(false), mShutdown(false)
#if defined(XP_WIN)
, mEmulatedWindowHandle(nullptr)
mEmulatedWindowHandle(nullptr),
#endif // defined(XP_WIN)
mTopLevel(false), mShutdown(false)
{
MOZ_COUNT_CTOR_INHERITED(DocAccessibleParent, ProxyAccessible);
sMaxDocID++;
@ -40,6 +40,7 @@ public:
MOZ_ASSERT(!LiveDocs().Get(mActorID));
LiveDocs().Put(mActorID, this);
}
~DocAccessibleParent()
{
LiveDocs().Remove(mActorID);

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

@ -19,8 +19,8 @@ static StaticAutoPtr<PlatformChild> sPlatformChild;
DocAccessibleChild::DocAccessibleChild(DocAccessible* aDoc, IProtocol* aManager)
: DocAccessibleChildBase(aDoc)
, mEmulatedWindowHandle(nullptr)
, mIsRemoteConstructed(false)
, mEmulatedWindowHandle(nullptr)
{
MOZ_COUNT_CTOR_INHERITED(DocAccessibleChild, DocAccessibleChildBase);
if (!sPlatformChild) {
@ -318,4 +318,3 @@ DocAccessibleChild::RecvRestoreFocus()
} // namespace a11y
} // namespace mozilla