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;
|
*this = ai;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator=(const CheckBufferOverrun::ArrayInfo &ai)
|
CheckBufferOverrun::ArrayInfo & CheckBufferOverrun::ArrayInfo::operator=(const CheckBufferOverrun::ArrayInfo &ai)
|
||||||
{
|
{
|
||||||
if (&ai != this)
|
if (&ai != this)
|
||||||
{
|
{
|
||||||
|
|
|
@ -126,7 +126,7 @@ public:
|
||||||
public:
|
public:
|
||||||
ArrayInfo();
|
ArrayInfo();
|
||||||
ArrayInfo(const ArrayInfo &);
|
ArrayInfo(const ArrayInfo &);
|
||||||
const ArrayInfo & operator=(const ArrayInfo &ai);
|
ArrayInfo & operator=(const ArrayInfo &ai);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create array info with specified data
|
* Create array info with specified data
|
||||||
|
|
Loading…
Reference in New Issue