aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-28 14:45:22 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-28 15:02:09 +0100
commit26e450a35a40136423b49ef09b7370e01737ad0c (patch)
treefcf21da8db324672d4ecddac3d98da36dea6f92c /src
parent61d5f50af1eafa2955f5bbbf17e77b779e7f7bd3 (diff)
Debugger: Fix compilation error with msvc
MSVC "cannot allocate an array of constant size 0". The argument isnt accessed anyway, so we can just pass 0 instead. Change-Id: I3d65707148f045f2ed2779604c164297830bfe87 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/debugger/qv8debugservice.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/debugger/qv8debugservice.cpp b/src/declarative/debugger/qv8debugservice.cpp
index da2389a34a..cfe4573c2a 100644
--- a/src/declarative/debugger/qv8debugservice.cpp
+++ b/src/declarative/debugger/qv8debugservice.cpp
@@ -274,8 +274,7 @@ void QV8DebugService::initialize(bool getCompiledScripts)
v8::Context::Scope contextScope(debuggerContext);
v8::Handle<v8::Function> getScriptsFn =
v8::Local<v8::Function>::Cast(d->debuggerScript->Get(v8::String::New("getScripts")));
- v8::Handle<v8::Value> argv[] = {};
- v8::Handle<v8::Value> result = getScriptsFn->Call(d->debuggerScript, 0, argv);
+ v8::Handle<v8::Value> result = getScriptsFn->Call(d->debuggerScript, 0, 0);
if (result.IsEmpty())
return;