aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-05-30 14:30:39 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-06-07 21:15:37 +0300
commitf6760187b7eccb9875932bfefed8c1c3d62c05e0 (patch)
treeac12538cd8ccad3ec9174daaa0d99e17ee64a06c /bpkg/package.hxx
parent6fbcb81432b8a41d90766cdfa9838f6b37fbb747 (diff)
Rename package_config structure to package_key
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r--bpkg/package.hxx12
1 files changed, 6 insertions, 6 deletions
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<database> 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 ();
}