зеркало из https://github.com/mozilla/gecko-dev.git
Fixed Mac casting problem. This is not part of the default build.
This commit is contained in:
Родитель
87b90c522f
Коммит
ccdbb51ce5
|
@ -96,6 +96,7 @@ interface nsISOAPParameter : nsISupports {
|
|||
* The name of the parameter. If the parameter is left unnamed, it
|
||||
* will be encoded using the element types defined in the SOAP-ENC
|
||||
* schema. For example, <code><SOAP-ENC:int>45</SOAP-ENC:int>
|
||||
* </code>
|
||||
*/
|
||||
attribute wstring name;
|
||||
|
||||
|
@ -140,10 +141,11 @@ interface nsISOAPParameter : nsISupports {
|
|||
* <code>type</code> attribute as detailed in the description of the
|
||||
* type constants. For script callers, the value returned is either
|
||||
* a string, boolean, double, integer, Array or object.</p>
|
||||
* <p>The setter is for script callers only. Native callers should
|
||||
* <p>The setter is for script callers only (again despite the
|
||||
* [noscript] qualification). Native callers should
|
||||
* use the <code>setValueAndType</code> method). For script callers,
|
||||
* the value can be either a string, boolean, double, integer, Array
|
||||
* or object.
|
||||
* or object.</p>
|
||||
*/
|
||||
[noscript] attribute nsISupports value;
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ nsSOAPUtils::ConvertValueToJSVal(JSContext* aContext,
|
|||
|
||||
if (data) {
|
||||
JSString* jsstr = JS_NewUCStringCopyZ(aContext,
|
||||
(const jschar*)data);
|
||||
NS_REINTERPRET_CAST(const jschar*, (const PRUnichar*)data));
|
||||
if (jsstr) {
|
||||
*vp = STRING_TO_JSVAL(jsstr);
|
||||
}
|
||||
|
|
|
@ -96,6 +96,7 @@ interface nsISOAPParameter : nsISupports {
|
|||
* The name of the parameter. If the parameter is left unnamed, it
|
||||
* will be encoded using the element types defined in the SOAP-ENC
|
||||
* schema. For example, <code><SOAP-ENC:int>45</SOAP-ENC:int>
|
||||
* </code>
|
||||
*/
|
||||
attribute wstring name;
|
||||
|
||||
|
@ -140,10 +141,11 @@ interface nsISOAPParameter : nsISupports {
|
|||
* <code>type</code> attribute as detailed in the description of the
|
||||
* type constants. For script callers, the value returned is either
|
||||
* a string, boolean, double, integer, Array or object.</p>
|
||||
* <p>The setter is for script callers only. Native callers should
|
||||
* <p>The setter is for script callers only (again despite the
|
||||
* [noscript] qualification). Native callers should
|
||||
* use the <code>setValueAndType</code> method). For script callers,
|
||||
* the value can be either a string, boolean, double, integer, Array
|
||||
* or object.
|
||||
* or object.</p>
|
||||
*/
|
||||
[noscript] attribute nsISupports value;
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ nsSOAPUtils::ConvertValueToJSVal(JSContext* aContext,
|
|||
|
||||
if (data) {
|
||||
JSString* jsstr = JS_NewUCStringCopyZ(aContext,
|
||||
(const jschar*)data);
|
||||
NS_REINTERPRET_CAST(const jschar*, (const PRUnichar*)data));
|
||||
if (jsstr) {
|
||||
*vp = STRING_TO_JSVAL(jsstr);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче