add missing c'tor; member is "mutable" now; remove wrong "template<>" JSON-92
authorLars Rohwedder <roker@pep-project.org>
Wed, 25 Apr 2018 09:19:10 +0200
branchJSON-92
changeset 488275700fe27a5
parent 487 cd63d6e61cf1
child 490 6e5c0e315e08
add missing c'tor; member is "mutable" now; remove wrong "template<>"
server/c_string.cc
server/c_string.hh
     1.1 --- a/server/c_string.cc	Wed Apr 25 09:07:48 2018 +0200
     1.2 +++ b/server/c_string.cc	Wed Apr 25 09:19:10 2018 +0200
     1.3 @@ -1,7 +1,6 @@
     1.4  #include "c_string.hh"
     1.5  #include <pEp/pEpEngine.h>
     1.6  
     1.7 -template<>
     1.8  Out<c_string, true>::~Out()
     1.9  {
    1.10  	pEp_free(value);
     2.1 --- a/server/c_string.hh	Wed Apr 25 09:07:48 2018 +0200
     2.2 +++ b/server/c_string.hh	Wed Apr 25 09:19:10 2018 +0200
     2.3 @@ -47,8 +47,11 @@
     2.4  	typedef Out<c_string, true> Self;
     2.5  	
     2.6  	typedef char** c_type;
     2.7 -	enum { is_output = true, need_input = false };
     2.8 +	enum { is_output = true, need_input = true };
     2.9  	
    2.10 +	Out(const js::Value&, Context*) // ignore dummy value, ignore context
    2.11 +	{ }
    2.12 +
    2.13  	~Out();
    2.14  	
    2.15  	Out(const Self& other) = delete;
    2.16 @@ -60,9 +63,9 @@
    2.17  		return value ? ::to_json<std::string>(value) : js::Value();
    2.18  	}
    2.19  	
    2.20 -	c_type get_value() { return &value; }
    2.21 +	c_type get_value() const { return &value; }
    2.22  	
    2.23 -	char* value = nullptr;
    2.24 +	mutable char* value = nullptr;
    2.25  };
    2.26  
    2.27