summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libc++/src/string.cpp')
-rw-r--r--contrib/libc++/src/string.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/libc++/src/string.cpp b/contrib/libc++/src/string.cpp
index fde5212..febc532 100644
--- a/contrib/libc++/src/string.cpp
+++ b/contrib/libc++/src/string.cpp
@@ -7,8 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__;
-
#include "string"
#include "cstdlib"
#include "cwchar"
@@ -65,7 +63,7 @@ inline
V
as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f)
{
- typename S::value_type* ptr;
+ typename S::value_type* ptr = nullptr;
const typename S::value_type* const p = str.c_str();
typename remove_reference<decltype(errno)>::type errno_save = errno;
errno = 0;
@@ -182,7 +180,7 @@ inline
V
as_float_helper(const string& func, const S& str, size_t* idx, F f )
{
- typename S::value_type* ptr;
+ typename S::value_type* ptr = nullptr;
const typename S::value_type* const p = str.c_str();
typename remove_reference<decltype(errno)>::type errno_save = errno;
errno = 0;
OpenPOWER on IntegriCloud