aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-11-14 13:19:57 +0000
committerVincent Richard <[email protected]>2006-11-14 13:19:57 +0000
commitae0cd86c4f604c77e166e731c3a56483230053d3 (patch)
treea1edcc1363cb19350f3bdae932f31a49d29739e8
parentUse 'char' instead of 'unsigned char' for conversion with std::ctype. (diff)
downloadvmime-ae0cd86c4f604c77e166e731c3a56483230053d3.tar.gz
vmime-ae0cd86c4f604c77e166e731c3a56483230053d3.zip
Use std::copy instead of loop (thanks to Michal Rzechonek).
-rw-r--r--src/attachmentHelper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attachmentHelper.cpp b/src/attachmentHelper.cpp
index e8ec82c2..da95513c 100644
--- a/src/attachmentHelper.cpp
+++ b/src/attachmentHelper.cpp
@@ -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));
}
}