update API docs so that I don't get false positives for GetUnicode()

(not part of build, just a doc)


git-svn-id: svn://10.0.0.236/trunk@139295 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2003-03-11 23:26:18 +00:00
parent 882151906f
commit 7307191534
2 changed files with 6 additions and 6 deletions

View File

@@ -1234,7 +1234,7 @@ strings semantics
> foo(const PRUnichar* s) {
> nsAutoString str(s);
> bar(str.GetUnicode());
> bar(str.get());
> }
>where s is null, bar will get passed a zero-length PRUnichar
@@ -1294,7 +1294,7 @@ Subject: Re: NS_LITERAL_STRING is broken
<pre>
const char* foobar = "foobar";
... NS_LITERAL_STRING(foobar).GetUnicode() ...
... NS_LITERAL_STRING(foobar).get() ...
</pre>
</div>
@@ -1999,7 +1999,7 @@ Subject: Re: how to free an nsString::ToNewCString
<hr>
<p>You use several <span class="code">NS_ConvertASCIItoUCS2("...").GetUnicode()</span>, these should be
<p>You use several <span class="code">NS_ConvertASCIItoUCS2("...").get()</span>, these should be
NS_LITERAL_STRING("...").get()