aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/diagnostics4
-rw-r--r--bpkg/types4
2 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/diagnostics b/bpkg/diagnostics
index ef7b24c..d1183d2 100644
--- a/bpkg/diagnostics
+++ b/bpkg/diagnostics
@@ -211,10 +211,10 @@ namespace bpkg
{
public:
location () {}
- location (std::string f, std::uint64_t l, std::uint64_t c)
+ location (string f, std::uint64_t l, std::uint64_t c)
: file (std::move (f)), line (l), column (c) {}
- std::string file;
+ string file;
std::uint64_t line;
std::uint64_t column;
};
diff --git a/bpkg/types b/bpkg/types
index d66f9fb..0394d56 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -15,7 +15,9 @@ namespace bpkg
{
// Commonly-used types.
//
- using strings = std::vector<std::string>;
+ using std::string;
+
+ using strings = std::vector<string>;
using cstrings = std::vector<const char*>;
// <butl/path>