Coverity issues:

129643
129654
129689
129714
This commit is contained in:
wmayer
2016-08-16 14:05:52 +02:00
parent 0e0d3446ba
commit 464a8f3860
6 changed files with 49 additions and 30 deletions

View File

@@ -52,7 +52,7 @@ ColorModel::~ColorModel ()
ColorModel& ColorModel::operator = (const ColorModel &rclM)
{
// first check if both objects are identical
if (this->_pclColors && this->_pclColors == rclM._pclColors)
if (this == &rclM)
return *this;
delete [] _pclColors;