if (aName) { mName = nsCRT::strdup(aName); }  if (aMessage) { mMessage = nsCRT::strdup(aMessage); }  if (aLocation) { mLocation = nsCRT::strdup(aLocation); }
nsDOMException::nsDOMException(nsresult aResult,                               const char* aName,                               const char* aMessage,                               const char* aLocation)  : mResult(aResult),    mName(nsnull),    mMessage(nsnull),    mLocation(nsnull){  NS_INIT_ISUPPORTS();  if (aName) {    mName = nsCRT::strdup(aName);  }    if (aMessage) {    mMessage = nsCRT::strdup(aMessage);  }  if (aLocation) {    mLocation = nsCRT::strdup(aLocation);  }}