From 41b5688b2ecb8d5ec6c6ed19f42599adb5df41c7 Mon Sep 17 00:00:00 2001 From: Julio Merino Date: Thu, 15 Sep 2016 13:48:10 +0000 Subject: Bake in the product name into the StartupOptions classes. Now that we have gotten a StartupOptions class for each of the products we support, we can bake in the product name in each instance instead of passing it to the constructor. Helps with encapsulation and simplifies various instantiations of these classes. -- MOS_MIGRATED_REVID=133255854 --- src/main/cpp/startup_options.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/cpp/startup_options.cc') diff --git a/src/main/cpp/startup_options.cc b/src/main/cpp/startup_options.cc index b3a8afc957..5d3e9f4118 100644 --- a/src/main/cpp/startup_options.cc +++ b/src/main/cpp/startup_options.cc @@ -33,6 +33,11 @@ namespace blaze { using std::vector; +StartupOptions::StartupOptions() : + StartupOptions("Bazel") { + Init(); +} + StartupOptions::StartupOptions(const string& product_name) : product_name(product_name) { Init(); -- cgit v1.2.3