mirror of https://gitee.com/bigwinds/arangodb
cleanup
This commit is contained in:
parent
d0a20e8c5e
commit
771f2db94b
|
@ -88,7 +88,7 @@ namespace triagens {
|
|||
/// @brief initialises the string buffer
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
StringBuffer (TRI_memory_zone_t* zone, const size_t initialSize) {
|
||||
StringBuffer (TRI_memory_zone_t* zone, size_t initialSize) {
|
||||
TRI_InitSizedStringBuffer(&_buffer, zone, initialSize);
|
||||
}
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ TRI_string_buffer_t* TRI_CreateSizedStringBuffer (TRI_memory_zone_t* zone,
|
|||
void TRI_InitStringBuffer (TRI_string_buffer_t * self, TRI_memory_zone_t* zone) {
|
||||
self->_memoryZone = zone;
|
||||
self->_buffer = nullptr;
|
||||
self->_current = 0;
|
||||
self->_current = nullptr;
|
||||
self->_len = 0;
|
||||
|
||||
Reserve(self, 120);
|
||||
|
@ -354,8 +354,8 @@ void TRI_InitSizedStringBuffer (TRI_string_buffer_t * self,
|
|||
TRI_memory_zone_t* zone,
|
||||
const size_t length) {
|
||||
self->_memoryZone = zone;
|
||||
self->_buffer = 0;
|
||||
self->_current = 0;
|
||||
self->_buffer = nullptr;
|
||||
self->_current = nullptr;
|
||||
self->_len = 0;
|
||||
|
||||
Reserve(self, length);
|
||||
|
|
|
@ -215,7 +215,7 @@ namespace triagens {
|
|||
}
|
||||
|
||||
bool SimpleHttpResult::isJson () const {
|
||||
auto find = _headerFields.find("content-type");
|
||||
auto const& find = _headerFields.find("content-type");
|
||||
|
||||
if (find == _headerFields.end()) {
|
||||
return false;
|
||||
|
|
|
@ -2177,7 +2177,6 @@ static v8::Handle<v8::Value> ParseObject (v8::Isolate* isolate,
|
|||
|
||||
if (c == STRING_CONSTANT) {
|
||||
// utf-8 attribute name
|
||||
std::cout << "utf8 attribute name: " << std::string(yytext + 1, yyleng - 2) << "\n";
|
||||
size_t outLength;
|
||||
char* name = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, yytext + 1, yyleng - 2, &outLength);
|
||||
|
||||
|
|
|
@ -259,7 +259,6 @@ static v8::Handle<v8::Value> ParseObject (v8::Isolate* isolate,
|
|||
|
||||
if (c == STRING_CONSTANT) {
|
||||
// utf-8 attribute name
|
||||
std::cout << "utf8 attribute name: " << std::string(yytext + 1, yyleng - 2) << "\n";
|
||||
size_t outLength;
|
||||
char* name = TRI_UnescapeUtf8StringZ(yyextra._memoryZone, yytext + 1, yyleng - 2, &outLength);
|
||||
|
||||
|
|
Loading…
Reference in New Issue