aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/attachmentHelperTest.cpp4
-rw-r--r--tests/parser/bodyPartTest.cpp2
-rw-r--r--tests/parser/htmlTextPartTest.cpp2
3 files changed, 4 insertions, 4 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();
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);
diff --git a/tests/parser/htmlTextPartTest.cpp b/tests/parser/htmlTextPartTest.cpp
index 278a87c1..9eef5e84 100644
--- a/tests/parser/htmlTextPartTest.cpp
+++ b/tests/parser/htmlTextPartTest.cpp
@@ -35,7 +35,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
static const vmime::string extractContent
- (vmime::shared_ptr <const vmime::contentHandler> cth)
+ (const vmime::shared_ptr <const vmime::contentHandler>& cth)
{
std::ostringstream oss;
vmime::utility::outputStreamAdapter osa(oss);