char* result = nsCRT::strdup("Disk cache device"); if (!result) return NS_ERROR_OUT_OF_MEMORY; *aDescription = result; return NS_OK;
*aDescription = nsCRT::strdup("Disk cache device"); return *aDescription ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
NS_IMETHODIMP nsDiskCacheDeviceInfo::GetDescription(char ** aDescription){    NS_ENSURE_ARG_POINTER(aDescription);    char* result = nsCRT::strdup("Disk cache device");    if (!result) return NS_ERROR_OUT_OF_MEMORY;    *aDescription = result;    return NS_OK;}