Kaydet (Commit) 9bf72cb9 authored tarafından Andreas Bregas's avatar Andreas Bregas

mib19: #163249# Changed SbiSymPool search order to avoid hiding parameters named like the sub

üst c26a9b2d
......@@ -206,9 +206,10 @@ void SbiSymPool::Add( SbiSymDef* pDef )
SbiSymDef* SbiSymPool::Find( const String& rName ) const
{
for( USHORT i = 0; i < aData.Count(); i++ )
USHORT nCount = aData.Count();
for( USHORT i = 0; i < nCount; i++ )
{
SbiSymDef* p = aData.GetObject( i );
SbiSymDef* p = aData.GetObject( nCount - i - 1 );
if( ( !p->nProcId || ( p->nProcId == nProcId ) )
&& ( p->aName.EqualsIgnoreCaseAscii( rName ) ) )
return p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment