Use the portability header for malloc_usable_size in small_vector.h
[folly.git] / folly / String.cpp
index 43404026d031324daa76bbf1495f43e00218df00..20634a7a796ce4be25d01c64c5df433a6db4713c 100644 (file)
@@ -306,8 +306,7 @@ double prettyToDouble(folly::StringPiece *const prettyString,
 
 double prettyToDouble(folly::StringPiece prettyString, const PrettyType type){
   double result = prettyToDouble(&prettyString, type);
-  detail::enforceWhitespace(prettyString.data(),
-                            prettyString.data() + prettyString.size());
+  detail::enforceWhitespace(prettyString);
   return result;
 }