Bug 766446 - 'nsEvent needs a copy constructor that calls MOZ_COUNT_CTOR'. r=bz.

This commit is contained in:
Ben Turner 2012-06-19 21:04:06 -07:00
parent 8d5747b8cb
commit fc968e2de7

View File

@ -566,6 +566,7 @@ protected:
nsEvent()
{
MOZ_COUNT_CTOR(nsEvent);
}
public:
@ -586,6 +587,12 @@ public:
MOZ_COUNT_DTOR(nsEvent);
}
nsEvent(const nsEvent& aOther)
{
MOZ_COUNT_CTOR(nsEvent);
*this = aOther;
}
// See event struct types
PRUint8 eventStructType;
// See GUI MESSAGES,