mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 1087306 - Fix some more bad implicit constructors in accessible; r=tbsaunde
This commit is contained in:
parent
2a8b3122f1
commit
341ebb19f1
@ -1180,7 +1180,7 @@ private:
|
||||
class AutoTreeMutation
|
||||
{
|
||||
public:
|
||||
AutoTreeMutation(Accessible* aRoot, bool aInvalidationRequired = true) :
|
||||
explicit AutoTreeMutation(Accessible* aRoot, bool aInvalidationRequired = true) :
|
||||
mInvalidationRequired(aInvalidationRequired), mRoot(aRoot)
|
||||
{
|
||||
MOZ_ASSERT(!(mRoot->mStateFlags & Accessible::eSubtreeMutating));
|
||||
|
@ -118,7 +118,7 @@ protected:
|
||||
class DummyAccessible : public AccessibleWrap
|
||||
{
|
||||
public:
|
||||
DummyAccessible(DocAccessible* aDocument = nullptr) :
|
||||
explicit DummyAccessible(DocAccessible* aDocument = nullptr) :
|
||||
AccessibleWrap(nullptr, aDocument) { }
|
||||
|
||||
virtual uint64_t NativeState() MOZ_OVERRIDE MOZ_FINAL;
|
||||
|
@ -22,7 +22,7 @@ class AccShowEvent;
|
||||
class DocAccessibleChild : public PDocAccessibleChild
|
||||
{
|
||||
public:
|
||||
DocAccessibleChild(DocAccessible* aDoc) :
|
||||
explicit DocAccessibleChild(DocAccessible* aDoc) :
|
||||
mDoc(aDoc)
|
||||
{ MOZ_COUNT_CTOR(DocAccessibleChild); }
|
||||
~DocAccessibleChild()
|
||||
|
@ -101,7 +101,7 @@ private:
|
||||
class ProxyEntry : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
ProxyEntry(const void*) : mProxy(nullptr) {}
|
||||
explicit ProxyEntry(const void*) : mProxy(nullptr) {}
|
||||
ProxyEntry(ProxyEntry&& aOther) :
|
||||
mProxy(aOther.mProxy) { aOther.mProxy = nullptr; }
|
||||
~ProxyEntry() { delete mProxy; }
|
||||
|
@ -21,7 +21,8 @@ class xpcAccessibleApplication : public xpcAccessibleGeneric,
|
||||
public nsIAccessibleApplication
|
||||
{
|
||||
public:
|
||||
xpcAccessibleApplication(Accessible* aIntl) : xpcAccessibleGeneric(aIntl) { }
|
||||
explicit xpcAccessibleApplication(Accessible* aIntl) :
|
||||
xpcAccessibleGeneric(aIntl) { }
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
|
@ -24,7 +24,7 @@ class xpcAccessibleDocument : public xpcAccessibleHyperText,
|
||||
public nsIAccessibleDocument
|
||||
{
|
||||
public:
|
||||
xpcAccessibleDocument(DocAccessible* aIntl) :
|
||||
explicit xpcAccessibleDocument(DocAccessible* aIntl) :
|
||||
xpcAccessibleHyperText(aIntl), mCache(kDefaultCacheLength) { }
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
@ -26,7 +26,7 @@ class xpcAccessibleGeneric : public xpcAccessible,
|
||||
public xpcAccessibleValue
|
||||
{
|
||||
public:
|
||||
xpcAccessibleGeneric(Accessible* aInternal) :
|
||||
explicit xpcAccessibleGeneric(Accessible* aInternal) :
|
||||
mIntl(aInternal), mSupportedIfaces(0)
|
||||
{
|
||||
if (mIntl->IsSelect())
|
||||
|
@ -23,7 +23,8 @@ class xpcAccessibleHyperText : public xpcAccessibleGeneric,
|
||||
public nsIAccessibleHyperText
|
||||
{
|
||||
public:
|
||||
xpcAccessibleHyperText(Accessible* aIntl) : xpcAccessibleGeneric(aIntl)
|
||||
explicit xpcAccessibleHyperText(Accessible* aIntl) :
|
||||
xpcAccessibleGeneric(aIntl)
|
||||
{
|
||||
if (mIntl->IsHyperText() && mIntl->AsHyperText()->IsTextRole())
|
||||
mSupportedIfaces |= eText;
|
||||
|
@ -18,7 +18,8 @@ class xpcAccessibleImage : public xpcAccessibleGeneric,
|
||||
public nsIAccessibleImage
|
||||
{
|
||||
public:
|
||||
xpcAccessibleImage(Accessible* aIntl) : xpcAccessibleGeneric(aIntl) { }
|
||||
explicit xpcAccessibleImage(Accessible* aIntl) :
|
||||
xpcAccessibleGeneric(aIntl) { }
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
|
@ -20,7 +20,8 @@ class xpcAccessibleTable : public xpcAccessibleGeneric,
|
||||
public nsIAccessibleTable
|
||||
{
|
||||
public:
|
||||
xpcAccessibleTable(Accessible* aIntl) : xpcAccessibleGeneric(aIntl) { }
|
||||
explicit xpcAccessibleTable(Accessible* aIntl) :
|
||||
xpcAccessibleGeneric(aIntl) { }
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
|
@ -21,7 +21,8 @@ class xpcAccessibleTableCell : public xpcAccessibleHyperText,
|
||||
public nsIAccessibleTableCell
|
||||
{
|
||||
public:
|
||||
xpcAccessibleTableCell(Accessible* aIntl) : xpcAccessibleHyperText(aIntl) { }
|
||||
explicit xpcAccessibleTableCell(Accessible* aIntl) :
|
||||
xpcAccessibleHyperText(aIntl) { }
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user