DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -41,8 +41,8 @@ class nsFormFrame;
|
||||
#define CSS_NOTSET -1
|
||||
#define ATTR_NOTSET -1
|
||||
|
||||
#define NS_STRING_TRUE "1"
|
||||
#define NS_STRING_FALSE "0"
|
||||
#define NS_STRING_TRUE NS_LITERAL_STRING("1")
|
||||
#define NS_STRING_FALSE NS_LITERAL_STRING("0")
|
||||
|
||||
/**
|
||||
* Enumeration of possible mouse states used to detect mouse clicks
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
* @returns PR_TRUE if aValue = "1", PR_FALSE otherwise
|
||||
*/
|
||||
|
||||
static PRBool GetBool(const nsString& aValue);
|
||||
static PRBool GetBool(const nsAReadableString& aValue);
|
||||
|
||||
/**
|
||||
* Utility to convert a PRBool to a string
|
||||
@@ -155,7 +155,7 @@ public:
|
||||
|
||||
*/
|
||||
|
||||
static void GetBoolString(const PRBool aValue, nsString& aResult);
|
||||
static void GetBoolString(const PRBool aValue, nsAWritableString& aResult);
|
||||
|
||||
// XXX similar functionality needs to be added to widget library and these
|
||||
// need to change to use it.
|
||||
|
||||
Reference in New Issue
Block a user