1
0
Fork 0
This commit is contained in:
Jan Steemann 2015-05-11 17:26:42 +02:00
parent d0a20e8c5e
commit 771f2db94b
5 changed files with 5 additions and 7 deletions

View File

@ -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);
}

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);