nsString/nsString2 -- what's the difference. Now using const too.

git-svn-id: svn://10.0.0.236/trunk@36513 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-06-23 06:08:13 +00:00
parent dd0df766ff
commit dedf8df377
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@
#include "nsIInputStream.h"
#include "nsIStreamListener.h"
#include "nsIEventSinkGetter.h"
#include "nsString2.h"
#include "nsString.h"
// Warning: These functions should NOT be defined with NS_NET because
// the intention is that they'll be linked with the library/DLL that
@ -34,7 +34,7 @@ extern nsresult
NS_NewURI(nsIURI* *result, const char* spec, nsIURI* baseURI = nsnull);
extern nsresult
NS_NewURI(nsIURI* *result, nsString2& spec, nsIURI* baseURI = nsnull);
NS_NewURI(nsIURI* *result, const nsString& spec, nsIURI* baseURI = nsnull);
extern nsresult
NS_OpenURI(nsIURI* uri, nsIInputStream* *result);
@ -46,6 +46,6 @@ extern nsresult
NS_MakeAbsoluteURI(const char* spec, nsIURI* baseURI, char* *result);
extern nsresult
NS_MakeAbsoluteURI(nsString2& spec, nsIURI* baseURI, nsString2& result);
NS_MakeAbsoluteURI(const nsString& spec, nsIURI* baseURI, nsString& result);
#endif // nsNeckoUtil_h__

View File

@ -35,7 +35,7 @@ NS_NewURI(nsIURI* *result, const char* spec, nsIURI* baseURI)
}
nsresult
NS_NewURI(nsIURI* *result, nsString2& spec, nsIURI* baseURI)
NS_NewURI(nsIURI* *result, const nsString& spec, nsIURI* baseURI)
{
char* specStr = spec.ToNewCString();
nsresult rv = NS_NewURI(result, specStr, baseURI);
@ -92,7 +92,7 @@ NS_MakeAbsoluteURI(const char* spec, nsIURI* baseURI, char* *result)
}
nsresult
NS_MakeAbsoluteURI(nsString2& spec, nsIURI* baseURI, nsString2& result)
NS_MakeAbsoluteURI(const nsString& spec, nsIURI* baseURI, nsString& result)
{
char* specStr = spec.ToNewCString();
char* resultStr;