diff options
Diffstat (limited to 'tests/auto/shared/testmodel.h')
-rw-r--r-- | tests/auto/shared/testmodel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/shared/testmodel.h b/tests/auto/shared/testmodel.h index 6eaab74a..b1d9308e 100644 --- a/tests/auto/shared/testmodel.h +++ b/tests/auto/shared/testmodel.h @@ -289,8 +289,7 @@ public: ~Node() { - foreach (Node *n, children) - delete n; + qDeleteAll(children); } void addRows(int row, int count) |