aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/attachmentHelperTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2018-08-18 14:08:25 +0000
committerVincent Richard <[email protected]>2018-08-18 14:08:25 +0000
commitf173b0a535e4d97c3ecd913eafb5e5c40aca2d44 (patch)
treec2c355b2e7fa5df7d5ea1c43154f274ee075c4ad /tests/parser/attachmentHelperTest.cpp
parentFixed delete array. (diff)
downloadvmime-f173b0a535e4d97c3ecd913eafb5e5c40aca2d44.tar.gz
vmime-f173b0a535e4d97c3ecd913eafb5e5c40aca2d44.zip
Avoid copy by passing shared_ptr<> with const reference.
Diffstat (limited to 'tests/parser/attachmentHelperTest.cpp')
-rw-r--r--tests/parser/attachmentHelperTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parser/attachmentHelperTest.cpp b/tests/parser/attachmentHelperTest.cpp
index 4d4a2623..6bd3b7db 100644
--- a/tests/parser/attachmentHelperTest.cpp
+++ b/tests/parser/attachmentHelperTest.cpp
@@ -39,7 +39,7 @@ VMIME_TEST_SUITE_BEGIN(attachmentHelperTest)
VMIME_TEST_LIST_END
- static const vmime::string getStructure(vmime::shared_ptr <vmime::bodyPart> part)
+ static const vmime::string getStructure(const vmime::shared_ptr <vmime::bodyPart>& part)
{
vmime::shared_ptr <vmime::body> bdy = part->getBody();
@@ -63,7 +63,7 @@ VMIME_TEST_SUITE_BEGIN(attachmentHelperTest)
return res + "]";
}
- static const vmime::string extractBodyContents(vmime::shared_ptr <const vmime::bodyPart> part)
+ static const vmime::string extractBodyContents(const vmime::shared_ptr <const vmime::bodyPart>& part)
{
vmime::shared_ptr <const vmime::contentHandler> cth = part->getBody()->getContents();