diff options
author | 2016-09-15 13:48:10 +0000 | |
---|---|---|
committer | 2016-09-15 15:42:02 +0000 | |
commit | 41b5688b2ecb8d5ec6c6ed19f42599adb5df41c7 (patch) | |
tree | 71c1ba9cc8bfd0a7e86c906629b43b821d747b31 /src/main/cpp/startup_options.cc | |
parent | 35cad2bc21108301c915bc9cd44dc83219864a8b (diff) |
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
Diffstat (limited to 'src/main/cpp/startup_options.cc')
-rw-r--r-- | src/main/cpp/startup_options.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |