Use nullptr rather than 0 for a null pointer
[folly.git] / folly / test / FBStringTest.cpp
index 64343b405ff03d41579bf282a85e67ee99b7ba77..6ded8b4c0215a09e55837d88fe60c1c73c2ed636 100644 (file)
@@ -1236,7 +1236,7 @@ TEST(FBString, testMoveOperatorPlusRhs) {
 //      other than libstdc++. Someday if we deem it important to present
 //      identical undefined behavior for other platforms, we can re-visit this.
 TEST(FBString, testConstructionFromLiteralZero) {
-  EXPECT_THROW(fbstring s(0), std::logic_error);
+  EXPECT_THROW(fbstring s(nullptr), std::logic_error);
 }
 
 TEST(FBString, testFixedBugs) {