mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Eliminate a uselss string copy
This commit is contained in:
parent
5c7402981c
commit
3072eef9ea
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user