@@ -25,10 +25,10 @@ const char* Stream::get_engine_type_str() const
2525 return it == EnumStrings.end () ? " Out of range" : it->second ;
2626}
2727
28- Stream* Stream::set_engine_type (const Engine::Type& engine_type)
28+ Stream& Stream::set_engine_type (const Engine::Type& engine_type)
2929{
3030 if (engine_type_ == engine_type) // No modification, just return
31- return this ;
31+ return * this ;
3232
3333 // Check if this engine type is known
3434 if (engine_type != Engine::Type::File && engine_type != Engine::Type::Staging)
@@ -53,7 +53,7 @@ Stream* Stream::set_engine_type(const Engine::Type& engine_type)
5353 // set the engine type
5454 engine_type_ = engine_type;
5555
56- return this ;
56+ return * this ;
5757}
5858
5959const char * Stream::get_transport_method_str () const
@@ -68,10 +68,10 @@ const char* Stream::get_transport_method_str() const
6868 return it == EnumStrings.end () ? " Out of range" : it->second ;
6969}
7070
71- Stream* Stream::set_transport_method (const Transport::Method& transport_method)
71+ Stream& Stream::set_transport_method (const Transport::Method& transport_method)
7272{
7373 if (transport_method_ == transport_method) // No modification, just return
74- return this ;
74+ return * this ;
7575
7676 // Check if this transport method is known
7777 if (transport_method != Transport::Method::File && transport_method != Transport::Method::Mailbox &&
@@ -97,18 +97,18 @@ Stream* Stream::set_transport_method(const Transport::Method& transport_method)
9797 // Set the transport method
9898 transport_method_ = transport_method;
9999
100- return this ;
100+ return * this ;
101101}
102102
103- Stream* Stream::set_metadata_export ()
103+ Stream& Stream::set_metadata_export ()
104104{
105105 metadata_export_ = true ;
106- return this ;
106+ return * this ;
107107}
108- Stream* Stream::unset_metadata_export ()
108+ Stream& Stream::unset_metadata_export ()
109109{
110110 metadata_export_ = false ;
111- return this ;
111+ return * this ;
112112}
113113
114114/* ***** Engine Factory ******/
0 commit comments