Skip to content

Commit ac22f3b

Browse files
author
Ettl Martin
committed
cli: added 'explicit'-keyword in CmdLineParser and PathMatch ctor
1 parent b187781 commit ac22f3b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cli/cmdlineparser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CmdLineParser {
4343
* @param settings Settings instance that will be modified according to
4444
* options user has given.
4545
*/
46-
CmdLineParser(Settings *settings);
46+
explicit CmdLineParser(Settings *settings);
4747

4848
/**
4949
* Parse given command line.

cli/pathmatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PathMatch {
3535
* The constructor.
3636
* @param masks List of masks.
3737
*/
38-
PathMatch(const std::vector<std::string> &masks);
38+
explicit PathMatch(const std::vector<std::string> &masks);
3939

4040
/**
4141
* @brief Match path against list of masks.

0 commit comments

Comments
 (0)