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

cli: silent unsigned -> int cast

parent d3bc3eaf
No related branches found
No related tags found
1 merge request!203Adress some more clang-tidy issues
......@@ -15,7 +15,7 @@ public:
return ptr1->getValue ( );
std::shared_ptr < abstraction::ValueHolderInterface < unsigned > > ptr2 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < unsigned > > ( result );
if ( ptr2 )
return ptr2->getValue ( );
return static_cast < int > ( ptr2->getValue ( ) );
std::shared_ptr < abstraction::ValueHolderInterface < bool > > ptr3 = std::dynamic_pointer_cast < abstraction::ValueHolderInterface < bool > > ( result );
if ( ptr3 )
return static_cast < int > ( ! ptr3->getValue ( ) );
......
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