Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf

This commit is contained in:
jaggernaut@netscape.com
2001-12-16 11:58:03 +00:00
parent 4b49fbac36
commit 0467433db5
281 changed files with 1332 additions and 1301 deletions

View File

@@ -204,13 +204,13 @@ nsHTMLButtonControlFrame::GetDefaultLabel(nsString& aString)
PRInt32 type;
GetType(&type);
if (NS_FORM_BUTTON_BUTTON == type) {
aString.AssignWithConversion("Button");
aString.Assign(NS_LITERAL_STRING("Button"));
}
else if (NS_FORM_BUTTON_RESET == type) {
aString.AssignWithConversion("Reset");
aString.Assign(NS_LITERAL_STRING("Reset"));
}
else if (NS_FORM_BUTTON_SUBMIT == type) {
aString.AssignWithConversion("Submit");
aString.Assign(NS_LITERAL_STRING("Submit"));
}
}