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:
@ -269,7 +269,7 @@ std::string OutputFilePath(std::string name,
|
||||
ss << output_rate / 1000 << "_pcm";
|
||||
|
||||
std::string filename = ss.str();
|
||||
if (temp_filenames[filename] == "")
|
||||
if (temp_filenames[filename].empty())
|
||||
temp_filenames[filename] = test::TempFilename(test::OutputPath(), filename);
|
||||
return temp_filenames[filename];
|
||||
}
|
||||
|
Reference in New Issue
Block a user