Skip to content

Commit

Permalink
Fixed some issues after CppCheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
igormironchik committed Aug 11, 2017
1 parent 3845d93 commit 45274b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Args/arg_as_command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ArgAsCommand
explicit ArgAsCommand( T && name,
bool required = false,
ValueOptions opt = ValueOptions::NoValue )
: m_name( std::forward< T > ( name ) )
: m_name( name )
, m_opt( opt )
, m_required( required )
, m_defined( false )
Expand Down
2 changes: 1 addition & 1 deletion Args/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Command final
template< typename T >
explicit Command( T && name,
ValueOptions opt = ValueOptions::NoValue )
: GroupIface( std::forward< T > ( name ) )
: GroupIface( name )
, m_opt( opt )
, m_isDefined( false )
{
Expand Down
2 changes: 1 addition & 1 deletion Args/help.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Help final
: public Arg
{
public:
Help( bool throwExceptionOnPrint = true );
explicit Help( bool throwExceptionOnPrint = true );

//! Set executable name.
void setExecutable( const String & exe );
Expand Down

0 comments on commit 45274b9

Please sign in to comment.