Fix some issues found by cppcheck

This commit is contained in:
Jason Turner
2016-02-14 20:01:49 -07:00
parent e0827634bb
commit bc0eaa5d15
5 changed files with 14 additions and 12 deletions

View File

@@ -46,7 +46,7 @@ namespace chaiscript {
private:
struct Data
{
Data(const std::type_info &t_type)
explicit Data(const std::type_info &t_type)
: m_type(t_type)
{
}

View File

@@ -40,7 +40,7 @@ namespace chaiscript
{
}
bad_boxed_cast(std::string t_what) CHAISCRIPT_NOEXCEPT
explicit bad_boxed_cast(std::string t_what) CHAISCRIPT_NOEXCEPT
: to(nullptr), m_what(std::move(t_what))
{
}