aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-30 23:24:52 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-06 11:46:55 +0300
commit22165c649ca2c5ef216ae3f99fbfb2dc0fff99ab (patch)
treebcf026fd8d2e036d061fa38aed3b71ec481e2455 /bpkg/package.cxx
parentad8d50be4016e68a4ab8d765bd9b45a9fdae1a6d (diff)
Make pkg-build to accept multiple current configurations
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r--bpkg/package.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx
index e458a86..894051a 100644
--- a/bpkg/package.cxx
+++ b/bpkg/package.cxx
@@ -56,7 +56,7 @@ namespace bpkg
string config_package::
string () const
{
- std::string s (db.string ());
+ const std::string& s (db.string);
return !s.empty () ? name.string () + ' ' + s : name.string ();
}
@@ -490,7 +490,7 @@ namespace bpkg
string selected_package::
string (database& db) const
{
- std::string s (db.string ());
+ const std::string& s (db.string);
return !s.empty () ? string () + ' ' + s : string ();
}