diff options
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r-- | bpkg/package.cxx | 4 |
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 (); } |