From 3072eef9eab9281dd2d09901ea55d236b7dd8954 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 3 Sep 1999 03:45:44 +0000 Subject: [PATCH] Eliminate a uselss string copy --- content/events/src/nsDOMEvent.cpp | 2 +- layout/events/src/nsDOMEvent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }