aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2018-08-18 16:08:25 +0200
committerVincent Richard <[email protected]>2018-08-18 16:08:25 +0200
commitf173b0a535e4d97c3ecd913eafb5e5c40aca2d44 (patch)
treec2c355b2e7fa5df7d5ea1c43154f274ee075c4ad /tests/testUtils.hpp
parentFixed delete array. (diff)
downloadvmime-f173b0a535e4d97c3ecd913eafb5e5c40aca2d44.tar.gz
vmime-f173b0a535e4d97c3ecd913eafb5e5c40aca2d44.zip
Avoid copy by passing shared_ptr<> with const reference.
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r--tests/testUtils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp
index 367be623..d17c38b2 100644
--- a/tests/testUtils.hpp
+++ b/tests/testUtils.hpp
@@ -275,7 +275,7 @@ public:
vmime::shared_ptr <vmime::net::timeoutHandler> getTimeoutHandler();
- void setTracer(vmime::shared_ptr <vmime::net::tracer> tracer);
+ void setTracer(const vmime::shared_ptr <vmime::net::tracer>& tracer);
vmime::shared_ptr <vmime::net::tracer> getTracer();
/** Send data to client.
@@ -336,7 +336,7 @@ public:
return vmime::make_shared <T>();
}
- vmime::shared_ptr <vmime::net::socket> create(vmime::shared_ptr <vmime::net::timeoutHandler> /* th */)
+ vmime::shared_ptr <vmime::net::socket> create(const vmime::shared_ptr <vmime::net::timeoutHandler>& /* th */)
{
return vmime::make_shared <T>();
}