summaryrefslogtreecommitdiff
path: root/lib/cpp/test/RecursiveTest.cpp
diff options
context:
space:
mode:
authorSebastian Zenker <sebastian.zenker@gmx.de>2019-01-29 15:48:12 +0100
committerJames E. King III <jking@apache.org>2019-01-29 09:48:12 -0500
commit042580f53441efe1bc5c80c89351fcb30740659e (patch)
treefb6504554a4dfa07dc4de09394be0f69a2b38cfd /lib/cpp/test/RecursiveTest.cpp
parentaa0c8b35d8f78812de1d7803d6277a37d2ed593a (diff)
downloadthrift-042580f53441efe1bc5c80c89351fcb30740659e.tar.gz
THRIFT-4762: Applied some C++11 refactorings to the runtime library and compiler (#1719)
* make use of C++11 override keyword * added const specifier to TTransport::getOrigin() * added more const correctness to the compiler * make use of auto keyword * replaced usage of NULL with nullptr * make use of explicitly-defaulted function definition * extended changelog
Diffstat (limited to 'lib/cpp/test/RecursiveTest.cpp')
-rw-r--r--lib/cpp/test/RecursiveTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cpp/test/RecursiveTest.cpp b/lib/cpp/test/RecursiveTest.cpp
index 15f234cfa..ab2e46dd7 100644
--- a/lib/cpp/test/RecursiveTest.cpp
+++ b/lib/cpp/test/RecursiveTest.cpp
@@ -60,8 +60,8 @@ BOOST_AUTO_TEST_CASE(test_recursive_2) {
RecList resultlist;
resultlist.read(prot.get());
- BOOST_CHECK(resultlist.nextitem != NULL);
- BOOST_CHECK(resultlist.nextitem->nextitem == NULL);
+ BOOST_CHECK(resultlist.nextitem != nullptr);
+ BOOST_CHECK(resultlist.nextitem->nextitem == nullptr);
}
BOOST_AUTO_TEST_CASE(test_recursive_3) {
@@ -75,8 +75,8 @@ BOOST_AUTO_TEST_CASE(test_recursive_3) {
c.write(prot.get());
c.read(prot.get());
- BOOST_CHECK(c.other != NULL);
- BOOST_CHECK(c.other->other.other == NULL);
+ BOOST_CHECK(c.other != nullptr);
+ BOOST_CHECK(c.other->other.other == nullptr);
}
BOOST_AUTO_TEST_CASE(test_recursive_4) {