Index: webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc |
diff --git a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc |
index ced92bce245c68e6d01d51488393ec9f2907dc71..f6eee39f3b49a328b3804a7de7ec8e08214b1871 100644 |
--- a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc |
+++ b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc |
@@ -111,7 +111,7 @@ int Log(const char *format, ...) { |
// Returns 0 if everything is OK, otherwise an exit code. |
int HandleCommandLineFlags(webrtc::test::TestConfig* config) { |
// Validate the mandatory flags: |
- if (FLAGS_input_filename == "" || FLAGS_width == -1 || FLAGS_height == -1) { |
+ if (FLAGS_input_filename.empty() || FLAGS_width == -1 || FLAGS_height == -1) { |
printf("%s\n", google::ProgramUsage()); |
return 1; |
} |
@@ -140,7 +140,7 @@ int HandleCommandLineFlags(webrtc::test::TestConfig* config) { |
config->output_dir = FLAGS_output_dir; |
// Manufacture an output filename if none was given. |
- if (FLAGS_output_filename == "") { |
+ if (FLAGS_output_filename.empty()) { |
// Cut out the filename without extension from the given input file |
// (which may include a path) |
int startIndex = FLAGS_input_filename.find_last_of("/") + 1; |