summaryrefslogtreecommitdiff
path: root/libs/libjson/src/JSONNode.inl
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-07-29 19:37:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-07-29 19:37:09 +0000
commita350048a2574bb603b8a64d210f42e449f8a4dfe (patch)
treebcdc4afd8c9caf42db1852494184ccd24e4929ea /libs/libjson/src/JSONNode.inl
parent2afddc4305325447f91d879af7d5c4c280257867 (diff)
get rid of useless wrapper code in libjson
git-svn-id: http://svn.miranda-ng.org/main/trunk@14755 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'libs/libjson/src/JSONNode.inl')
-rw-r--r--libs/libjson/src/JSONNode.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libjson/src/JSONNode.inl b/libs/libjson/src/JSONNode.inl
index d895a977f7..b012ffdbb2 100644
--- a/libs/libjson/src/JSONNode.inl
+++ b/libs/libjson/src/JSONNode.inl
@@ -338,12 +338,12 @@ inline void JSONNode::decRef(void){ //decrements internal's counter, deletes it
}
#endif
#ifdef JSON_WRITER
- inline json_string JSONNode::write(void){
+ inline json_string JSONNode::write(void) const {
JSON_CHECK_INTERNAL();
JSON_ASSERT_SAFE(type() == JSON_NODE || type() == JSON_ARRAY, JSON_TEXT("Writing a non-writable node"), return JSON_TEXT(""););
return internal -> Write(0xFFFFFFFF, true);
}
- inline json_string JSONNode::write_formatted(void){
+ inline json_string JSONNode::write_formatted(void) const {
JSON_CHECK_INTERNAL();
JSON_ASSERT_SAFE(type() == JSON_NODE || type() == JSON_ARRAY, JSON_TEXT("Writing a non-writable node"), return JSON_TEXT(""););
return internal -> Write(0, true);