fixed warning from cppcheck: [lib/checkbufferoverrun.h:129]: (style) 'operator=' should not return a const reference

This commit is contained in:
Ettl Martin 2010-09-15 22:25:12 +02:00
parent ebf13acfbd
commit a56f6d276a
2 changed files with 2 additions and 2 deletions

View File

@ -1740,7 +1740,7 @@ CheckBufferOverrun::ArrayInfo::ArrayInfo(const CheckBufferOverrun::ArrayInfo &ai
*this = ai;
}
const CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator=(const CheckBufferOverrun::ArrayInfo &ai)
CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator=(const CheckBufferOverrun::ArrayInfo &ai)
{
if (&ai != this)
{

View File

@ -126,7 +126,7 @@ public:
public:
ArrayInfo();
ArrayInfo(const ArrayInfo &);
const ArrayInfo & operator=(const ArrayInfo &ai);
ArrayInfo & operator=(const ArrayInfo &ai);
/**
* Create array info with specified data