Eliminate a uselss string copy

This commit is contained in:
kipp%netscape.com 1999-09-03 03:45:44 +00:00
parent 5c7402981c
commit 3072eef9ea
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}