Change implicit conversion from

|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
disttsc%bart.nl
2001-03-08 08:05:05 +00:00
parent e5075b3d5f
commit abd8de21e5
92 changed files with 380 additions and 408 deletions

View File

@@ -580,7 +580,7 @@ nsresult nsHTMLTokenizer::ConsumeAttributes(PRUnichar aChar,CStartToken* aToken,
const nsAReadableString& key=theToken->GetKey();
const nsAReadableString& text=theToken->GetValue();
// support XML like syntax to fix bugs like 44186
if((kForwardSlash==key.CharAt(0)) && (0==text.Length())){
if((kForwardSlash==key.First()) && (0==text.Length())){
aToken->SetEmpty(PR_TRUE);
isUsableAttr=!mDoXMLEmptyTags;
}