Simplify some uses of cajun types and eliminate some copies

Originally committed to SVN as r6007.
This commit is contained in:
Thomas Goyne 2011-12-22 21:10:41 +00:00
parent 9cbaa01e63
commit 522e634122

View file

@ -31,8 +31,7 @@ namespace agi {
MRUManager::MRUManager(const std::string &config, const std::string &default_config): config_name(config) {
LOG_D("agi/mru") << "Loading MRU List";
json::UnknownElement root = json_util::file(config, default_config);
const json::Object& root_new = (json::Object)root;
json::Object root_new = json_util::file(config, default_config);
json::Object::const_iterator index_object(root_new.begin()), index_objectEnd(root_new.end());