"docs/git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "b70894df524ae34ba7b66df8cb541523cc29b880"
Commit 9c1efac2 authored by Tom Hughes's avatar Tom Hughes Committed by Copybara-Service
Browse files

Use std::make_unique

PiperOrigin-RevId: 525828947
Change-Id: I66f47c835bc93ba171eba0da8df09eff89c6c77b
parent d7fb5e1a
......@@ -204,7 +204,7 @@ class GTEST_API_ AssertionResult {
private:
// Appends the contents of message to message_.
void AppendMessage(const Message& a_message) {
if (message_ == nullptr) message_.reset(new ::std::string);
if (message_ == nullptr) message_ = ::std::make_unique<::std::string>();
message_->append(a_message.GetString().c_str());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment