Skip to content

Commit

Permalink
Avoid implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Jun 12, 2015
1 parent cc6fc11 commit b290e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compare_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ParseException : public virtual std::invalid_argument
{
public:

ParseException(const std::string &message)
explicit ParseException(const std::string &message)
: std::invalid_argument(message)
{
}
Expand Down
2 changes: 1 addition & 1 deletion rgba_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class RGBImageException : public virtual std::invalid_argument
{
public:

RGBImageException(const std::string &message)
explicit RGBImageException(const std::string &message)
: std::invalid_argument(message)
{
}
Expand Down

0 comments on commit b290e40

Please sign in to comment.