diff --git a/content/events/src/nsDOMEvent.cpp b/content/events/src/nsDOMEvent.cpp index 96af8c01f475..ef27d77993be 100644 --- a/content/events/src/nsDOMEvent.cpp +++ b/content/events/src/nsDOMEvent.cpp @@ -144,7 +144,7 @@ NS_METHOD nsDOMEvent::GetType(nsString& aType) const char* mName = GetEventName(mEvent->message); if (nsnull != mName) { - aType = nsString(mName); + aType = mName; return NS_OK; } diff --git a/layout/events/src/nsDOMEvent.cpp b/layout/events/src/nsDOMEvent.cpp index 96af8c01f475..ef27d77993be 100644 --- a/layout/events/src/nsDOMEvent.cpp +++ b/layout/events/src/nsDOMEvent.cpp @@ -144,7 +144,7 @@ NS_METHOD nsDOMEvent::GetType(nsString& aType) const char* mName = GetEventName(mEvent->message); if (nsnull != mName) { - aType = nsString(mName); + aType = mName; return NS_OK; }