From 8ba8ffcbb1f55fab414d8e7f6052fcfcb0e00f06 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Wed, 7 May 2014 16:34:22 +0200 Subject: [PATCH] Add a useful const. --- lib/BasicsC/json.c | 2 +- lib/BasicsC/json.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BasicsC/json.c b/lib/BasicsC/json.c index 5ef04eff43..ad0c869211 100644 --- a/lib/BasicsC/json.c +++ b/lib/BasicsC/json.c @@ -773,7 +773,7 @@ TRI_json_t* TRI_LookupListJson (const TRI_json_t* const object, const size_t pos void TRI_InsertArrayJson (TRI_memory_zone_t* zone, TRI_json_t* object, char const* name, - TRI_json_t* subobject) { + TRI_json_t const* subobject) { TRI_json_t copy; char* att; size_t length; diff --git a/lib/BasicsC/json.h b/lib/BasicsC/json.h index cb43cb7e0e..fe84a13068 100644 --- a/lib/BasicsC/json.h +++ b/lib/BasicsC/json.h @@ -329,7 +329,7 @@ TRI_json_t* TRI_LookupListJson (const TRI_json_t* const , const size_t); /// @brief adds a new attribute to an object, using copy //////////////////////////////////////////////////////////////////////////////// -void TRI_InsertArrayJson (TRI_memory_zone_t*, TRI_json_t* object, char const* name, TRI_json_t* subobject); +void TRI_InsertArrayJson (TRI_memory_zone_t*, TRI_json_t* object, char const* name, TRI_json_t const* subobject); //////////////////////////////////////////////////////////////////////////////// /// @brief adds a new attribute to an object, not copying it