on xenial help sign in
Right, you don't need to guard delete
commit09dac0dfe20e8c4f0f29aa9afb0dc64cf8b35082 authorMichael Terry <mike@mterry.name> dateWed 11 Jan 2017, 09:36 (10 years ago) parent9901e75
1 file changed+1−3
tests/plugins/LightDM/IntegratedLightDM/usersmodel.cpp+1−3
tests/plugins/LightDM/IntegratedLightDM/usersmodel.cpp+1−3
@@ -44,9 +44,7 @@ private:
4444
4545 void recreateModel()
4646 {
47− if (model) {
48− delete model;
49− }
47+ delete model;
5048 model = new UsersModel();
5149 QVERIFY(model);
5250 }