From da465ae1dca7fbcaeae555734c5620d6130fba67 Mon Sep 17 00:00:00 2001 From: Gee Date: Mon, 6 Sep 2004 02:22:38 +0000 Subject: [PATCH] Made a little change only to make it compile, hopefully it won't do too much damage until Philip can correct this. This was SVN commit r1126. --- source/gui/scripting/JSInterface_IGUIObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/gui/scripting/JSInterface_IGUIObject.cpp b/source/gui/scripting/JSInterface_IGUIObject.cpp index a5c8a1bc61..432ed16244 100755 --- a/source/gui/scripting/JSInterface_IGUIObject.cpp +++ b/source/gui/scripting/JSInterface_IGUIObject.cpp @@ -1,4 +1,4 @@ -// $Id: JSInterface_IGUIObject.cpp,v 1.13 2004/09/04 14:42:46 philip Exp $ +// $Id: JSInterface_IGUIObject.cpp,v 1.14 2004/09/06 02:22:38 gee Exp $ #include "precompiled.h" @@ -162,7 +162,8 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsval id, jsval CGUIString value; GUI::GetSetting(e, propName, value); // Create a garbage-collectable copy of the string - *vp = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, value.GetRawString().c_str() )); + // TODO Gee@Ykkrosh: this was just to make it compile + *vp = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, (const char*)value.GetRawString().c_str() )); break; }