| Index: third_party/WebKit/Source/modules/payments/PaymentAddress.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentAddress.cpp b/third_party/WebKit/Source/modules/payments/PaymentAddress.cpp
|
| index 10fc77910557bff1aa91ba5c75f2b07d0379a163..fea61124fe053db5ece1068b381675bf26e49f04 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentAddress.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentAddress.cpp
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "modules/payments/PaymentAddress.h"
|
|
|
| +#include "wtf/text/StringBuilder.h"
|
| +
|
| namespace blink {
|
|
|
| PaymentAddress::PaymentAddress(mojom::blink::PaymentAddressPtr address)
|
| @@ -21,8 +23,11 @@ PaymentAddress::PaymentAddress(mojom::blink::PaymentAddressPtr address)
|
| , m_phone(address->phone)
|
| {
|
| if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) {
|
| - m_languageCode.append("-");
|
| - m_languageCode.append(address->script_code);
|
| + StringBuilder builder;
|
| + builder.append(m_languageCode);
|
| + builder.append('-');
|
| + builder.append(address->script_code);
|
| + m_languageCode = builder.toString();
|
| }
|
| }
|
|
|
|
|