diff options
Diffstat (limited to 'examples/example6_tracer.hpp')
-rw-r--r-- | examples/example6_tracer.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/example6_tracer.hpp b/examples/example6_tracer.hpp index 19d0f040..8f57f56c 100644 --- a/examples/example6_tracer.hpp +++ b/examples/example6_tracer.hpp @@ -6,8 +6,8 @@ class myTracer : public vmime::net::tracer { public: - myTracer(vmime::shared_ptr <std::ostringstream> stream, - vmime::shared_ptr <vmime::net::service> serv, const int connectionId) + myTracer(const vmime::shared_ptr <std::ostringstream>& stream, + const vmime::shared_ptr <vmime::net::service>& serv, const int connectionId) : m_stream(stream), m_service(serv), m_connectionId(connectionId) { } @@ -35,13 +35,13 @@ class myTracerFactory : public vmime::net::tracerFactory { public: - myTracerFactory(vmime::shared_ptr <std::ostringstream> stream) + myTracerFactory(const vmime::shared_ptr <std::ostringstream>& stream) : m_stream(stream) { } vmime::shared_ptr <vmime::net::tracer> create - (vmime::shared_ptr <vmime::net::service> serv, const int connectionId) + (const vmime::shared_ptr <vmime::net::service>& serv, const int connectionId) { return vmime::make_shared <myTracer>(m_stream, serv, connectionId); } |