c++ wrapper: add missing 'inline' statements to various constructors
the missing 'inline' leads to duplicated symbols if the header is included into two separately compiled files.
This commit is contained in:
parent
42621370c3
commit
7d5982e6fe
@ -166,9 +166,9 @@ namespace json {
|
|||||||
// proxies an array element
|
// proxies an array element
|
||||||
class ElementProxy {
|
class ElementProxy {
|
||||||
public:
|
public:
|
||||||
ElementProxy(json_t* array, unsigned int index);
|
inline ElementProxy(json_t* array, unsigned int index);
|
||||||
ElementProxy(const ElementProxy& other);
|
inline ElementProxy(const ElementProxy& other);
|
||||||
~ElementProxy();
|
inline ~ElementProxy();
|
||||||
|
|
||||||
// assign to the proxied element
|
// assign to the proxied element
|
||||||
inline ElementProxy& operator=(const Value& value);
|
inline ElementProxy& operator=(const Value& value);
|
||||||
@ -187,9 +187,9 @@ namespace json {
|
|||||||
// proxies an object property
|
// proxies an object property
|
||||||
class PropertyProxy {
|
class PropertyProxy {
|
||||||
public:
|
public:
|
||||||
PropertyProxy(json_t* object, const char *key);
|
inline PropertyProxy(json_t* object, const char *key);
|
||||||
PropertyProxy(const PropertyProxy& other);
|
inline PropertyProxy(const PropertyProxy& other);
|
||||||
~PropertyProxy();
|
inline ~PropertyProxy();
|
||||||
|
|
||||||
// assign to the proxied element
|
// assign to the proxied element
|
||||||
inline PropertyProxy& operator=(const Value& value);
|
inline PropertyProxy& operator=(const Value& value);
|
||||||
|
Loading…
Reference in New Issue
Block a user