summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/console.cpp')
-rw-r--r--fpdfsdk/javascript/console.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/console.cpp b/fpdfsdk/javascript/console.cpp
index dbe8e328d1..0f5ca4ea1c 100644
--- a/fpdfsdk/javascript/console.cpp
+++ b/fpdfsdk/javascript/console.cpp
@@ -20,11 +20,10 @@ JSMethodSpec CJS_Console::MethodSpecs[] = {{"clear", clear_static},
{"show", show_static},
{0, 0}};
-const char* CJS_Console::g_pClassName = "console";
int CJS_Console::g_nObjDefnID = -1;
void CJS_Console::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- g_nObjDefnID = pEngine->DefineObj(CJS_Console::g_pClassName, eObjType,
+ g_nObjDefnID = pEngine->DefineObj("console", eObjType,
JSConstructor<CJS_Console, console>,
JSDestructor<CJS_Console>);
DefineMethods(pEngine, g_nObjDefnID, MethodSpecs);