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:
@ -73,7 +73,7 @@ FileOutputFrameReceiver::FileOutputFrameReceiver(
|
||||
count_(0) {
|
||||
std::string basename;
|
||||
std::string extension;
|
||||
if (base_out_filename == "") {
|
||||
if (base_out_filename.empty()) {
|
||||
basename = webrtc::test::OutputPath() + "rtp_decoded";
|
||||
extension = "yuv";
|
||||
} else {
|
||||
|
||||
@ -44,9 +44,8 @@ int RtpPlay(const CmdArgs& args) {
|
||||
kDefaultVp8PayloadType, "VP8", webrtc::kVideoCodecVP8));
|
||||
|
||||
std::string output_file = args.outputFile;
|
||||
if (output_file == "") {
|
||||
if (output_file.empty())
|
||||
output_file = webrtc::test::OutputPath() + "RtpPlay_decoded.yuv";
|
||||
}
|
||||
|
||||
webrtc::SimulatedClock clock(0);
|
||||
webrtc::rtpplayer::VcmPayloadSinkFactory factory(output_file, &clock,
|
||||
|
||||
Reference in New Issue
Block a user