Remove stringstream usages from the APM

Bug: webrtc:8982
Change-Id: Icdbf7ec8d12a40efba9859f5fdf9953683e603c1
Reviewed-on: https://webrtc-review.googlesource.com/67060
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22771}
This commit is contained in:
Jonas Olsson 2018-04-05 11:34:56 +02:00 committed by Commit Bot
parent d93d01ef63
commit 18f151a582
2 changed files with 3 additions and 5 deletions

View file

@ -9,8 +9,6 @@
*/
#include "modules/audio_processing/aec3/echo_canceller3.h"
#include <sstream>
#include "modules/audio_processing/logging/apm_data_dumper.h"
#include "rtc_base/atomicops.h"
#include "rtc_base/logging.h"

View file

@ -10,8 +10,7 @@
#include "modules/audio_processing/logging/apm_data_dumper.h"
#include <sstream>
#include "rtc_base/strings/string_builder.h"
#include "rtc_base/stringutils.h"
// Check to verify that the define is properly set.
@ -29,7 +28,8 @@ std::string FormFileName(const char* name,
int instance_index,
int reinit_index,
const std::string& suffix) {
std::stringstream ss;
char buf[1024];
rtc::SimpleStringBuilder ss(buf);
ss << name << "_" << instance_index << "-" << reinit_index << suffix;
return ss.str();
}