fixed warning from cppcheck: [lib/checkbufferoverrun.h:129]: (style) 'operator=' should not return a const reference
This commit is contained in:
parent
ebf13acfbd
commit
a56f6d276a
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue