not necessary to test it before delete it

svn path=/trunk/KDE/kdelibs/; revision=1183974
This commit is contained in:
Laurent Montel 2010-10-08 21:57:37 +00:00
parent dc6633a0d5
commit dd256bfe92

View File

@ -86,13 +86,8 @@ void DeclarativeWidgetPrivate::execute(const QString &fileName)
return; return;
} }
if (engine) {
delete engine; delete engine;
}
if (component) {
delete component; delete component;
}
engine = new QDeclarativeEngine(q); engine = new QDeclarativeEngine(q);
component = new QDeclarativeComponent(engine, fileName, q); component = new QDeclarativeComponent(engine, fileName, q);