From 968d8a7acd6c23078a3ea6936c03be0b45523227 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Feb 2018 15:48:50 +0200 Subject: Add support for update-for-{test,install} operation aliases --- build2/config/init.cxx | 4 ++-- build2/config/operation.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/config') diff --git a/build2/config/init.cxx b/build2/config/init.cxx index 35bc94c..8bbc07e 100644 --- a/build2/config/init.cxx +++ b/build2/config/init.cxx @@ -29,8 +29,8 @@ namespace build2 l5 ([&]{trace << "for " << rs.out_path ();}); - const string& mname (*current_mname); - const string& oname (*current_oname); + const string& mname (current_mname); + const string& oname (current_oname); // Only create the module if we are configuring or creating. This is a // bit tricky since the build2 core may not yet know if this is the diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index fa7cb9f..d5a1565 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -732,7 +732,7 @@ namespace build2 fail (l) << "invalid module name: " << e.what (); } - current_oname = &empty_string; // Make sure valid. + current_oname = empty_string; // Make sure valid. // Now handle each target in each operation spec. // -- cgit v1.1