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@234758 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
disttsc%bart.nl 2007-09-06 21:58:03 +00:00
parent cb52e6b25e
commit 011ff57120

View File

@ -436,7 +436,7 @@ LocalSearchDataSource::parseDate(const nsAReadableString& aDate,
// parse the time
PRTime *outTime = NS_STATIC_CAST(PRTime*,aResult);
PRStatus err;
err = PR_ParseTimeString(NS_ConvertUCS2toUTF8(aDate),
err = PR_ParseTimeString(NS_ConvertUCS2toUTF8(aDate).get(),
PR_FALSE, // PR_FALSE == use current timezone
outTime);
NS_ENSURE_TRUE(err == 0, NS_ERROR_FAILURE);