mirror of https://gitee.com/bigwinds/arangodb
remove: reinterpret_cast from user code
This commit is contained in:
parent
06bd01695a
commit
43d06efa76
|
@ -414,8 +414,7 @@ static v8::Handle<v8::Object> RequestCppToV8(v8::Isolate* isolate,
|
|||
} else {
|
||||
VPackSlice slice = request->payload();
|
||||
V8Buffer* buffer = V8Buffer::New(
|
||||
//TODO FIXME - BAD CAST
|
||||
isolate, reinterpret_cast<const char*>(slice.begin()), std::distance(slice.begin(), slice.end()));
|
||||
isolate, slice.startAs<char>(), std::distance(slice.begin(), slice.end()));
|
||||
v8::Local<v8::Object> bufferObject =
|
||||
v8::Local<v8::Object>::New(isolate, buffer->_handle);
|
||||
req->ForceSet(RequestBodyKey, bufferObject);
|
||||
|
|
Loading…
Reference in New Issue