BinClone/CloneSearcherLib/CSAssemblyFileMgr.cpp
//
// add a global feature only if it is a new one
//
add a global feature only if it is a new one
add a global feature only if it is a new one
bool CCSAssemblyFileMgr::addGlobalFeatureIfNew(LPCTSTR featureName)
{
    for (int f = 0; f < m_globalFeatures.GetSize(); ++f) {
        if (m_globalFeatures.GetAt(f).CompareNoCase(featureName) == 0)
            return true;
    }
    return addGlobalFeature(featureName);
}
bool CCSAssemblyFileMgr :: addGlobalFeatureIfNew ( LPCTSTR featureName ) { for ( int f = 0 ; f < m_globalFeatures . GetSize ( ) ; ++ f ) { if ( m_globalFeatures . GetAt ( f ) . CompareNoCase ( featureName ) == 0 ) return true ; } return addGlobalFeature ( featureName ) ; }
add a global feature only if it is a new one
add a global feature only if it is a new one