~alecu/unity-scope-click/uninstallable-scopes

« back to all changes in this revision

Viewing changes to libclickscope/click/package.cpp

  • Committer: Alejandro J. Cura
  • Date: 2014-06-12 21:05:25 UTC
  • Revision ID: alecu@canonical.com-20140612210525-g9jyrd3z66468gfv
A few refactorings to ease the following branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    return p;
81
81
}
82
82
 
83
 
PackageList package_list_from_json_node(const Json::Value& root)
 
83
Packages package_list_from_json_node(const Json::Value& root)
84
84
{
85
 
    PackageList pl;
 
85
    Packages pl;
86
86
    if (root.isObject() && root.isMember(Package::JsonKeys::embedded))
87
87
    {
88
88
        auto const emb = root[Package::JsonKeys::embedded];
114
114
    return pl;
115
115
}
116
116
 
117
 
PackageList package_list_from_json(const std::string& json)
 
117
Packages package_list_from_json(const std::string& json)
118
118
{
119
119
    std::istringstream is(json);
120
120