//求两个QStringList的交集,结果保存再第一个参数中
void CommonFunc::getQStringListIntersect( QStringList& commonColumns, QStringList& currentColumns )
{
if( () == 0 || () == 0 )
{
();
return;
}
();
();
int x = 0, y = 0;
for( int i = x; i < (); i++ )
{
int j;
for( j = y; j < (); j++ )
{
if(QString::compare( commonColumns[i], currentColumns[j] ) == 0)
{
x = i + 1;
y = j + 1;
break;
}
else
{
continue;
}
}
if( j == () )
{
(i);
--i;
}
}
}