diff options
author | pbos <pbos@webrtc.org> | 2015-07-09 07:48:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 14:48:27 +0000 |
commit | bb36fdf95f9667fb1f3fbf3073bd15007681322c (patch) | |
tree | b4c0d85b61cfddf1f729908157232f7f86f6ba5d /webrtc/modules/audio_processing/transient | |
parent | 3b1e647b6a6f74d8e4392e012fe2262b3d2c4334 (diff) | |
download | webrtc-bb36fdf95f9667fb1f3fbf3073bd15007681322c.tar.gz |
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}
Diffstat (limited to 'webrtc/modules/audio_processing/transient')
-rw-r--r-- | webrtc/modules/audio_processing/transient/transient_suppression_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webrtc/modules/audio_processing/transient/transient_suppression_test.cc b/webrtc/modules/audio_processing/transient/transient_suppression_test.cc index fdc5686763..506abaf203 100644 --- a/webrtc/modules/audio_processing/transient/transient_suppression_test.cc +++ b/webrtc/modules/audio_processing/transient/transient_suppression_test.cc @@ -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"); } |