I have the following problem. I need to remove all warnings from a source and there is one (I have it in several sources) that says the following, I'm using linux and cmake:
/mnt/clas/Source/CLAS/lashandle.h: In constructor ‘LAS_HeaderSectionValue::LAS_HeaderSectionValue(const QString&, const QString&, const QString&, const QString&)’:
/mnt/clas/Source/CLAS/lashandle.h:63: warning: declaration of ‘Description’ shadows a member of 'this'
/mnt/clas/Source/CLAS/lashandle.h:63: warning: declaration of ‘Value’ shadows a member of 'this'
/mnt/clas/Source/CLAS/lashandle.h:63: warning: declaration of ‘MesUnit’ shadows a member of 'this'
/mnt/clas/Source/CLAS/lashandle.h:63: warning: declaration of ‘ShortName’ shadows a member of 'this'
the .h file where the line indicates me has the following declaration / definition:
class LAS_HeaderSectionValue
{
public:
LAS_HeaderSectionValue(const QString &ShortName, const QString &MesUnit, const QString &Value, const QString &Description)
{
this->m_pShortName = new QString(ShortName);
this->m_pMesUnit = new QString(MesUnit);
this->m_pValue = new QString(Value);
this->m_pDescription = new QString(Description);
}
};
Can someone help me / guide to remove that warning ?. I do not finish to understand what is happening. My code did not have this but I added them and even so it still indicates the same warning