From 8053aff7cc02c1fa11b291a57b7cabc9d04a9e61 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 3 May 2006 04:28:12 +0000 Subject: [PATCH] Use NS_REINTERPRET_CAST to convert from jschar* to PRUnichar*. Fixing mingw bustage. Bug #336331 r=vladimir --- content/html/content/src/nsHTMLCanvasElement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/html/content/src/nsHTMLCanvasElement.cpp b/content/html/content/src/nsHTMLCanvasElement.cpp index bcba1c737dd..2984af1dca4 100644 --- a/content/html/content/src/nsHTMLCanvasElement.cpp +++ b/content/html/content/src/nsHTMLCanvasElement.cpp @@ -338,7 +338,7 @@ nsHTMLCanvasElement::ToDataURL(nsAString& aDataURL) if (!JSVAL_IS_STRING(argv[0])) return NS_ERROR_DOM_SYNTAX_ERR; JSString *type = JS_ValueToString(ctx, argv[0]); - return ToDataURLImpl (nsDependentString(JS_GetStringChars(type)), + return ToDataURLImpl (nsDependentString(NS_REINTERPRET_CAST(PRUnichar*,(JS_GetStringChars(type)))), EmptyString(), aDataURL); } @@ -351,8 +351,8 @@ nsHTMLCanvasElement::ToDataURL(nsAString& aDataURL) type = JS_ValueToString(ctx, argv[0]); params = JS_ValueToString(ctx, argv[1]); - return ToDataURLImpl (nsDependentString(JS_GetStringChars(type)), - nsDependentString(JS_GetStringChars(params)), + return ToDataURLImpl (nsDependentString(NS_REINTERPRET_CAST(PRUnichar*,JS_GetStringChars(type))), + nsDependentString(NS_REINTERPRET_CAST(PRUnichar*,JS_GetStringChars(params))), aDataURL); }