summaryrefslogtreecommitdiffstats
path: root/googletest/samples/sample2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/samples/sample2.cc')
-rw-r--r--googletest/samples/sample2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/samples/sample2.cc b/googletest/samples/sample2.cc
index d8e8723..be7c4c9 100644
--- a/googletest/samples/sample2.cc
+++ b/googletest/samples/sample2.cc
@@ -38,7 +38,7 @@ const char* MyString::CloneCString(const char* a_c_string) {
if (a_c_string == nullptr) return nullptr;
const size_t len = strlen(a_c_string);
- char* const clone = new char[ len + 1 ];
+ char* const clone = new char[len + 1];
memcpy(clone, a_c_string, len + 1);
return clone;