Skip to content
Snippets Groups Projects
Commit 8ee37947 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

cli: pass shared_ptr by reference

parent 96aa70a1
No related branches found
No related tags found
1 merge request!200clang tidy fixes
...@@ -8,7 +8,7 @@ namespace cli { ...@@ -8,7 +8,7 @@ namespace cli {
   
class ResultInterpret { class ResultInterpret {
public: public:
static int cli ( std::shared_ptr < abstraction::Value > result ) { static int cli ( const std::shared_ptr < abstraction::Value > & result ) {
if ( result ) { if ( result ) {
std::shared_ptr < abstraction::ValueHolderInterface < int > > ptr1 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < int > > ( result ); std::shared_ptr < abstraction::ValueHolderInterface < int > > ptr1 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < int > > ( result );
if ( ptr1 ) if ( ptr1 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment