From bc965df24ffae81e9a05f63b31d46fa01a8d52d9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 10 Oct 2015 15:37:13 +0200 Subject: Rename package_version class to package --- brep/package.cxx | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'brep/package.cxx') diff --git a/brep/package.cxx b/brep/package.cxx index 3cf4063..be14034 100644 --- a/brep/package.cxx +++ b/brep/package.cxx @@ -16,25 +16,25 @@ using namespace odb::core; namespace brep { - // package_version + // package // - package_version:: - package_version (string nm, - version_type vr, - priority_type pr, - string sm, - license_alternatives_type la, - strings tg, - optional ds, - string ch, - url_type ur, - optional pu, - email_type em, - optional pe, - dependencies_type dp, - requirements_type rq, - optional lc, - shared_ptr rp) + package:: + package (string nm, + version_type vr, + priority_type pr, + string sm, + license_alternatives_type la, + strings tg, + optional ds, + string ch, + url_type ur, + optional pu, + email_type em, + optional pe, + dependencies_type dp, + requirements_type rq, + optional lc, + shared_ptr rp) : name (move (nm)), version (move (vr)), priority (move (pr)), @@ -55,10 +55,10 @@ namespace brep assert (internal_repository->internal); } - package_version:: - package_version (string nm, - version_type vr, - shared_ptr rp) + package:: + package (string nm, + version_type vr, + shared_ptr rp) : name (move (nm)), version (move (vr)) { @@ -66,7 +66,7 @@ namespace brep external_repositories.emplace_back (move (rp)); } - package_version::_id_type package_version:: + package::_id_type package:: _id () const { return _id_type { @@ -79,11 +79,11 @@ namespace brep version.upstream}; } - void package_version:: + void package:: _id (_id_type&& v, database&) { const auto& dv (v.data.version); - name = move (v.data.package); + name = move (v.data.name); version = version_type (dv.epoch, move (v.upstream), dv.revision); assert (version.canonical_upstream == dv.canonical_upstream); } -- cgit v1.1