Deleted property svnmerge-integrated.
A non-void function, Chelate::equivGen was reaching the end of function without a return value, which could cause a segmentation fault. FIXED. svn path=/trunk/KDE/kdebase/workspace/; revision=1177875
This commit is contained in:
parent
2aec750ebf
commit
2b40492bea
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,7 @@ QScriptValue KWin::Chelate::chelationEquivGen(QScriptContext* ctx, QScriptEngine
|
|||
|
||||
QScriptValue KWin::Chelate::chelationCheck(QScriptContext* ctx, QScriptEngine* eng)
|
||||
{
|
||||
Q_UNUSED(eng)
|
||||
QScriptValue key = ((ctx->callee()).data()).property("key");
|
||||
|
||||
if(!key.isUndefined())
|
||||
|
@ -299,6 +300,8 @@ QScriptValue KWin::Chelate::chelationCheck(QScriptContext* ctx, QScriptEngine* e
|
|||
QScriptValue callBase = scCentral.property(key.toString());
|
||||
return (callBase.isFunction())?((callBase.call(scCentral)).toBool()):(callBase.toBool());
|
||||
}
|
||||
|
||||
return eng->toScriptValue<bool>(0);
|
||||
}
|
||||
|
||||
QScriptValue KWin::Chelate::chelationCheckGen(QScriptContext* ctx, QScriptEngine* eng)
|
||||
|
|
Loading…
Reference in a new issue