aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/bodyPartTest.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/bodyPartTest.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/bodyPartTest.cpp')
-rw-r--r--tests/parser/bodyPartTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/parser/bodyPartTest.cpp b/tests/parser/bodyPartTest.cpp
index 4dc5d670..e6ff737a 100644
--- a/tests/parser/bodyPartTest.cpp
+++ b/tests/parser/bodyPartTest.cpp
@@ -49,7 +49,7 @@ VMIME_TEST_SUITE_BEGIN(bodyPartTest)
buffer.begin() + c.getParsedOffset() + c.getParsedLength());
}
- static const vmime::string extractContents(const vmime::shared_ptr <const vmime::contentHandler> cts)
+ static const vmime::string extractContents(const vmime::shared_ptr <const vmime::contentHandler>& cts)
{
std::ostringstream oss;
vmime::utility::outputStreamAdapter os(oss);