From 352c8f6a2190a65107a30c42230b67018fc5625f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 24 May 2019 12:02:07 +0900 Subject: Adjusted to latest TQVariant::TQVariant(bool) function. Signed-off-by: Michele Calgaro --- tdehtml/ecma/kjs_binding.cpp | 2 +- tdehtml/ecma/kjs_debugwin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tdehtml/ecma') diff --git a/tdehtml/ecma/kjs_binding.cpp b/tdehtml/ecma/kjs_binding.cpp index d9f0b7b25..7e545a5a4 100644 --- a/tdehtml/ecma/kjs_binding.cpp +++ b/tdehtml/ecma/kjs_binding.cpp @@ -328,7 +328,7 @@ TQVariant KJS::ValueToVariant(ExecState* exec, const Value &val) { TQVariant res; switch (val.type()) { case BooleanType: - res = TQVariant(val.toBoolean(exec), 0); + res = TQVariant(val.toBoolean(exec)); break; case NumberType: res = TQVariant(val.toNumber(exec)); diff --git a/tdehtml/ecma/kjs_debugwin.cpp b/tdehtml/ecma/kjs_debugwin.cpp index df2e24d37..2e08f5ea8 100644 --- a/tdehtml/ecma/kjs_debugwin.cpp +++ b/tdehtml/ecma/kjs_debugwin.cpp @@ -862,7 +862,7 @@ bool KJSDebugWin::exception(ExecState *exec, const Value &value, bool inTryCatch if (dontShowAgain) { TDEConfig *config = kapp->config(); TDEConfigGroupSaver saver(config,TQString::fromLatin1("Java/JavaScript Settings")); - config->writeEntry("ReportJavaScriptErrors",TQVariant(false,0)); + config->writeEntry("ReportJavaScriptErrors",TQVariant(false)); config->sync(); TQByteArray data; kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data ); -- cgit v1.2.1