Skip to content

Commit fdbb86a

Browse files
committed
core/model: fix recursion in emptyInstance
1 parent 0a7dcf3 commit fdbb86a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/model.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ QHash<int, QByteArray> UntypedObjectModel::roleNames() const {
99
}
1010

1111
UntypedObjectModel* UntypedObjectModel::emptyInstance() {
12-
return ObjectModel<void>::emptyInstance();
12+
static auto* instance = new ObjectModel<void>(nullptr);
13+
return instance;
1314
}

0 commit comments

Comments
 (0)