Removing redundant non null check before deleting a ptr in destructors #301

This commit is contained in:
matlabbe
2018-08-09 15:53:47 -04:00
parent 5e60a2596c
commit 714d95cc34
20 changed files with 38 additions and 155 deletions
+1 -4
View File
@@ -58,10 +58,7 @@ public:
}
virtual ~LineItem()
{
if(_placeHolder)
{
delete _placeHolder;
}
delete _placeHolder;
}
void setColor(const QColor & color);