mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-07 02:05:00 +00:00
Checking for nullnes is unnecessary
If the memory allocation fails we are screwed anyway
This commit is contained in:
parent
ed8cb13083
commit
548b7f4e50
@ -123,7 +123,6 @@ void dos_qqmlapplicationengine_rootObjects(void *vptr, void *** array, int *arra
|
||||
auto engine = static_cast<QQmlApplicationEngine *>(vptr);
|
||||
QList<QObject *> list = engine->rootObjects();
|
||||
void** objects = new void*[list.size()];
|
||||
if (objects == nullptr) return;
|
||||
for (int i = 0; i < list.size(); ++i)
|
||||
objects[i] = static_cast<QObject*>(list.at(i));
|
||||
*array = static_cast<void **>(objects);
|
||||
|
Loading…
x
Reference in New Issue
Block a user