Cleanup: Do not check pointers before deleting them, part 2.
[pdfium.git] / fpdfsdk / src / javascript / console.cpp
index 9d67b4d..ed9b1fb 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/javascript/JavaScript.h"
@@ -22,10 +22,10 @@ BEGIN_JS_STATIC_PROP(CJS_Console)
 END_JS_STATIC_PROP()
 
 BEGIN_JS_STATIC_METHOD(CJS_Console)
-       JS_STATIC_METHOD_ENTRY(clear, 0)
-       JS_STATIC_METHOD_ENTRY(hide, 0)
-       JS_STATIC_METHOD_ENTRY(println, 1)
-       JS_STATIC_METHOD_ENTRY(show, 0)
+       JS_STATIC_METHOD_ENTRY(clear)
+       JS_STATIC_METHOD_ENTRY(hide)
+       JS_STATIC_METHOD_ENTRY(println)
+       JS_STATIC_METHOD_ENTRY(show)
 END_JS_STATIC_METHOD()
 
 IMPLEMENT_JS_CLASS(CJS_Console,console)