Make SimpleStringBuilder into a non-template

So that future CLs can de-inline its methods.

We do this by asking the caller to allocate the buffer instead of
having it as a data member.

Bug: webrtc:8982
Change-Id: I246b0973e54510fdd880c3b6875336c31334d008
Reviewed-on: https://webrtc-review.googlesource.com/60000
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22355}
This commit is contained in:
Karl Wiberg
2018-03-08 15:03:23 +01:00
committed by Commit Bot
parent 4c6a30c1bf
commit 881f16891b
8 changed files with 173 additions and 38 deletions

View File

@ -142,12 +142,15 @@ rtc_source_set("safe_minmax") {
rtc_source_set("stringutils") {
sources = [
"strings/string_builder.cc",
"strings/string_builder.h",
"stringutils.cc",
"stringutils.h",
]
deps = [
":checks",
":safe_minmax",
"../api:array_view",
]
}