Remove empty-string comparisons.
Use .empty() and !.empty() in favor of == "" or != "". BUG= R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1228913003 Cr-Commit-Position: refs/heads/master@{#9559}
This commit is contained in:
@ -150,13 +150,13 @@ void void_main() {
|
||||
|
||||
// Prepare the detection file.
|
||||
FILE* detection_file = NULL;
|
||||
if (FLAGS_detection_file_name != "") {
|
||||
if (!FLAGS_detection_file_name.empty()) {
|
||||
detection_file = fopen(FLAGS_detection_file_name.c_str(), "rb");
|
||||
}
|
||||
|
||||
// Prepare the reference file.
|
||||
FILE* reference_file = NULL;
|
||||
if (FLAGS_reference_file_name != "") {
|
||||
if (!FLAGS_reference_file_name.empty()) {
|
||||
reference_file = fopen(FLAGS_reference_file_name.c_str(), "rb");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user