aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/version
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-15 13:27:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-15 21:18:42 +0300
commit460eb164f0051cf0ffab6860220649c4f03c74fb (patch)
tree517455df26047c70429679c7bed790098cb39c4e /libbuild2/version
parent678345c5a96f14d05a56bce8a68bdd45dfe1d172 (diff)
Use path_name_view in location and path_name_value in location_value
Diffstat (limited to 'libbuild2/version')
-rw-r--r--libbuild2/version/init.cxx6
-rw-r--r--libbuild2/version/utility.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx
index c9d5021..9a56756 100644
--- a/libbuild2/version/init.cxx
+++ b/libbuild2/version/init.cxx
@@ -74,8 +74,8 @@ namespace build2
if (nv.value != pn.string ())
{
path bf (rs.src_path () / rs.root_extra->bootstrap_file);
- location ml (&f, nv.value_line, nv.value_column);
- location bl (&bf);
+ location ml (f, nv.value_line, nv.value_column);
+ location bl (bf);
fail (ml) << "package name " << nv.value << " does not match "
<< "build system project name " << pn <<
@@ -164,7 +164,7 @@ namespace build2
}
catch (const manifest_parsing& e)
{
- location l (&f, e.line, e.column);
+ location l (f, e.line, e.column);
fail (l) << e.description;
}
catch (const io_error& e)
diff --git a/libbuild2/version/utility.cxx b/libbuild2/version/utility.cxx
index 0669da7..867aaa8 100644
--- a/libbuild2/version/utility.cxx
+++ b/libbuild2/version/utility.cxx
@@ -63,12 +63,12 @@ namespace build2
}
catch (const manifest_parsing& e)
{
- location l (&in, e.line, e.column);
+ location l (in, e.line, e.column);
fail (l) << e.description;
}
catch (const manifest_serialization& e)
{
- location l (&r.path);
+ location l (r.path);
fail (l) << e.description;
}
catch (const io_error& e)