Debugger: Fix compilation error with msvc
authorKai Koehne <kai.koehne@nokia.com>
Mon, 28 Nov 2011 13:45:22 +0000 (14:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 Nov 2011 14:02:09 +0000 (15:02 +0100)
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>
src/declarative/debugger/qv8debugservice.cpp

index da2389a..cfe4573 100644 (file)
@@ -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;