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.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/googletest/samples/sample2.cc b/googletest/samples/sample2.cc
index 5f763b9..d8e8723 100644
--- a/googletest/samples/sample2.cc
+++ b/googletest/samples/sample2.cc
@@ -28,8 +28,6 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// A sample program demonstrating using Google C++ testing framework.
-//
-// Author: wan@google.com (Zhanyong Wan)
#include "sample2.h"
@@ -37,7 +35,7 @@
// Clones a 0-terminated C string, allocating memory using new.
const char* MyString::CloneCString(const char* a_c_string) {
- if (a_c_string == NULL) return NULL;
+ if (a_c_string == nullptr) return nullptr;
const size_t len = strlen(a_c_string);
char* const clone = new char[ len + 1 ];