#19 pnlXMLRead bug

open
nobody
None
5
2005-02-22
2005-02-22
Gelly Sylvain
No

Something wrong here in pnlXMLRead.cpp, method
Get :

for(int i = m_aName.size(); --i >= 0 && m_aName[i] !=
sName;);
{
if(sName == m_aName[i])
{
m_abDelete[i] = bAutoDelete;
return m_aObject[i];
}

See the ";" at the end of the for !!
It prevents to compile on my computer.
Either remove the ";" or comment all if you really want
an empty loop !

Discussion

  • Alvaro Marin
    Alvaro Marin
    2005-02-22

    Logged In: YES
    user_id=777655

    To compile it, just declare the "i" variable out of the for:

    int i;
    for(i = m_aName.size(); --i >= 0 && m_aName[i] != sName;);
    {
    ....

    Bye,
    Alvaro