From f6760187b7eccb9875932bfefed8c1c3d62c05e0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 30 May 2022 14:30:39 +0300 Subject: Rename package_config structure to package_key --- bpkg/package.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bpkg/package.hxx') diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 9a7c572..6ae2109 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -1568,21 +1568,21 @@ namespace bpkg // not detached during such map lifetimes. Considers both package name and // database for objects comparison. // - struct config_package + struct package_key { reference_wrapper db; package_name name; - config_package (database& d, package_name n): db (d), name (move (n)) {} + package_key (database& d, package_name n): db (d), name (move (n)) {} // Create a pseudo-package (command line as a dependent, etc). // - config_package (database& d, string n) + package_key (database& d, string n) : db (d), name (n.empty () ? package_name () : package_name (move (n))) {} bool - operator== (const config_package& v) const + operator== (const package_key& v) const { // See operator==(database, database). // @@ -1590,7 +1590,7 @@ namespace bpkg } bool - operator< (const config_package&) const; + operator< (const package_key&) const; // Return the package string representation in the form: // @@ -1601,7 +1601,7 @@ namespace bpkg }; inline ostream& - operator<< (ostream& os, const config_package& p) + operator<< (ostream& os, const package_key& p) { return os << p.string (); } -- cgit v1.1