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

@@ -172,8 +172,10 @@ namespace chaiscript
virtual Boxed_Value eval_internal(const chaiscript::detail::Dispatch_State &t_ss) const CHAISCRIPT_OVERRIDE {
if (!m_value.is_undef())
{
std::cout << "1\n";
return m_value;
} else {
std::cout << "0\n";
try {
return t_ss->get_object(this->text, m_loc);
}