From 22165c649ca2c5ef216ae3f99fbfb2dc0fff99ab Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 30 Aug 2021 23:24:52 +0300 Subject: Make pkg-build to accept multiple current configurations --- bpkg/package.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/package.cxx') 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 (); } -- cgit v1.1