diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-03 09:16:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-03 09:16:21 +0200 |
commit | 2650fe1faaee8202cb7361f2e8cf0c790c3fd946 (patch) | |
tree | 16efdbbf55d9ffd4676e287a50e111fb043b4bff /libbuild2 | |
parent | 1cc657a1ae2d496c0467a7c33257aa3cd2bfc3a8 (diff) |
Get rid of remaining typedef's
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/spec.hxx | 4 | ||||
-rw-r--r-- | libbuild2/target.hxx | 2 | ||||
-rw-r--r-- | libbuild2/utility.txx | 2 | ||||
-rw-r--r-- | libbuild2/variable.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/libbuild2/spec.hxx b/libbuild2/spec.hxx index 3a760c6..d2ed609 100644 --- a/libbuild2/spec.hxx +++ b/libbuild2/spec.hxx @@ -16,7 +16,7 @@ namespace build2 { struct targetspec { - typedef build2::name name_type; + using name_type = build2::name; explicit targetspec (name_type n): name (move (n)) {} @@ -52,7 +52,7 @@ namespace build2 values params; }; - typedef vector<metaopspec> buildspec; + using buildspec = vector<metaopspec>; LIBBUILD2_SYMEXPORT ostream& operator<< (ostream&, const targetspec&); diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 9a4aed5..eb958c8 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -1499,7 +1499,7 @@ namespace build2 public: using mtime_target::mtime_target; - typedef build2::path path_type; + using path_type = build2::path; // Target path is an "atomic consistent cash". That is, it can be set at // any time (including on a const instance) but any subsequent updates diff --git a/libbuild2/utility.txx b/libbuild2/utility.txx index 5e7accc..bb25288 100644 --- a/libbuild2/utility.txx +++ b/libbuild2/utility.txx @@ -34,7 +34,7 @@ namespace build2 basic_path<char, K> relative (const basic_path<char, K>& p) { - typedef basic_path<char, K> path; + using path = basic_path<char, K>; const dir_path& b (*relative_base); diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index e5d8e72..9febe5e 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -1330,7 +1330,7 @@ namespace butl struct compare_prefix<std::reference_wrapper<const build2::variable>>: compare_prefix<std::string> { - typedef compare_prefix<std::string> base; + using base = compare_prefix<std::string>; explicit compare_prefix (char d): base (d) {} |