Use std::copy instead of loop (thanks to Michal Rzechonek).

This commit is contained in:
Vincent Richard 2006-11-14 13:19:57 +00:00
parent b63f6513f2
commit ae0cd86c4f

View File

@ -157,8 +157,7 @@ const std::vector <ref <const attachment> >
std::vector <ref <const attachment> > partAtts = std::vector <ref <const attachment> > partAtts =
findAttachmentsInBodyPart(bdy->getPartAt(i)); findAttachmentsInBodyPart(bdy->getPartAt(i));
for (unsigned int j = 0 ; j < partAtts.size() ; ++j) std::copy(partAtts.begin(), partAtts.end(), std::back_inserter(atts));
atts.push_back(partAtts[j]);
} }
} }