读负荷匹配的时候如果独到长度为0的就直接跳出循环。
Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
parent
88ca00c78b
commit
77ba7c7cec
|
|
@ -158,6 +158,10 @@ bool LoadMapping::readMatch(const QString& dir)
|
|||
QVector<QSharedPointer<LoadInfo> > loads;
|
||||
for(int i=1;i<sep.length();i++)
|
||||
{
|
||||
if(sep.at(i).trimmed().length()==0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
QSharedPointer<LoadInfo> t(new LoadInfo);
|
||||
t->setLoadName(sep.at(i));
|
||||
loads.push_back(t);
|
||||
|
|
|
|||
Loading…
Reference in New Issue