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:
parent
dd0df766ff
commit
dedf8df377
@ -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__
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user