From 2dba0de8ae805bc85575bf3de4775d81bb95cf5c Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 26 Jun 2017 09:30:16 +0200 Subject: Internal change RELNOTES: None. PiperOrigin-RevId: 160111047 --- src/main/cpp/startup_options.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 7b03f69f40..46f0df475d 100644 --- a/src/main/cpp/startup_options.cc +++ b/src/main/cpp/startup_options.cc @@ -179,25 +179,25 @@ blaze_exit_code::ExitCode StartupOptions::ProcessArg( host_jvm_args.push_back(value); option_sources["host_jvm_args"] = rcfile; // NB: This is incorrect } else if ((value = GetUnaryOption(arg, next_arg, "--bazelrc")) != NULL) { - if (rcfile != "") { + if (!rcfile.empty()) { *error = "Can't specify --bazelrc in the .bazelrc file."; return blaze_exit_code::BAD_ARGV; } } else if ((value = GetUnaryOption(arg, next_arg, "--blazerc")) != NULL) { - if (rcfile != "") { + if (!rcfile.empty()) { *error = "Can't specify --blazerc in the .blazerc file."; return blaze_exit_code::BAD_ARGV; } } else if (GetNullaryOption(arg, "--nomaster_blazerc") || GetNullaryOption(arg, "--master_blazerc")) { - if (rcfile != "") { + if (!rcfile.empty()) { *error = "Can't specify --[no]master_blazerc in .blazerc file."; return blaze_exit_code::BAD_ARGV; } option_sources["blazerc"] = rcfile; } else if (GetNullaryOption(arg, "--nomaster_bazelrc") || GetNullaryOption(arg, "--master_bazelrc")) { - if (rcfile != "") { + if (!rcfile.empty()) { *error = "Can't specify --[no]master_bazelrc in .bazelrc file."; return blaze_exit_code::BAD_ARGV; } -- cgit v1.2.3