Skip to content

Commit

Permalink
Use a variable as const ref instead of const.
Browse files Browse the repository at this point in the history
Issue found by cppcheck.
  • Loading branch information
mordante committed Jun 9, 2014
1 parent e35f4bb commit 91ea8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/make_enum.hpp
Expand Up @@ -114,7 +114,7 @@ MAKE_ENUM_STREAM_OPS2(bar , another)
class bad_enum_cast : public std::exception
{
public:
bad_enum_cast(const std::string& enumname, const std::string str)
bad_enum_cast(const std::string& enumname, const std::string& str)
: message("Failed to convert String \"" + str + "\" to type " + enumname)
{}

Expand Down

0 comments on commit 91ea8b1

Please sign in to comment.