aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));
}
}