Use std::copy instead of loop (thanks to Michal Rzechonek).
This commit is contained in:
parent
b63f6513f2
commit
ae0cd86c4f
@ -157,8 +157,7 @@ const std::vector <ref <const attachment> >
|
||||
std::vector <ref <const attachment> > partAtts =
|
||||
findAttachmentsInBodyPart(bdy->getPartAt(i));
|
||||
|
||||
for (unsigned int j = 0 ; j < partAtts.size() ; ++j)
|
||||
atts.push_back(partAtts[j]);
|
||||
std::copy(partAtts.begin(), partAtts.end(), std::back_inserter(atts));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user