test get(key, default)

This commit is contained in:
Christopher Dunn
2015-03-05 16:44:41 -06:00
parent f50145fbda
commit d31151d150
2 changed files with 4 additions and 1 deletions

View File

@@ -1037,7 +1037,7 @@ Value Value::get(char const* key, Value const& defaultValue) const
}
Value Value::get(std::string const& key, Value const& defaultValue) const
{
return get(key.c_str(), defaultValue);
return get(key.data(), key.data() + key.length(), defaultValue);
}