aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/stringprintf_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-05-30 08:47:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-30 08:50:43 -0700
commitd83074847ebfe8871188f1f9f1e84ab0451f59e6 (patch)
treedbe0bd71cb9b8934889df83f221cef83f494a28e /tensorflow/core/lib/strings/stringprintf_test.cc
parentb73fea6e27b17dc4349754e585113e7a8138339e (diff)
Use "nullptr" for null pointer values
PiperOrigin-RevId: 157468186
Diffstat (limited to 'tensorflow/core/lib/strings/stringprintf_test.cc')
-rw-r--r--tensorflow/core/lib/strings/stringprintf_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/lib/strings/stringprintf_test.cc b/tensorflow/core/lib/strings/stringprintf_test.cc
index 8d2bc897b0..d61a1a945a 100644
--- a/tensorflow/core/lib/strings/stringprintf_test.cc
+++ b/tensorflow/core/lib/strings/stringprintf_test.cc
@@ -66,7 +66,7 @@ TEST(PrintfTest, Multibyte) {
// out of memory while trying to determine destination buffer size.
// see b/4194543.
- char* old_locale = setlocale(LC_CTYPE, NULL);
+ char* old_locale = setlocale(LC_CTYPE, nullptr);
// Push locale with multibyte mode
setlocale(LC_CTYPE, "en_US.utf8");
@@ -95,7 +95,7 @@ TEST(PrintfTest, Multibyte) {
TEST(PrintfTest, NoMultibyte) {
// No multibyte handling, but the string contains funny chars.
- char* old_locale = setlocale(LC_CTYPE, NULL);
+ char* old_locale = setlocale(LC_CTYPE, nullptr);
setlocale(LC_CTYPE, "POSIX");
string value = Printf("%.*s", 3, "\375\067s");
setlocale(LC_CTYPE, old_locale);