axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Proposal: Using const in generated code
Date Fri, 14 Nov 2008 13:50:00 GMT
+1.
It is a useful  suggestion. Would you like to provide a patch?

Thanks,
Samisa...

Patrick van Beem wrote:
> Hello,
>
> In the generated code in axis2_stub_..., the axis2_char_t* type arguments used for axsi2_stub_create_...
are defined non-const, while they're only used const (and the nature of the parameters just
screams for const). This leads to unnecessary const_casts in code using these functions. Wouldn't
it be better to generate const axis2_char_t* arguments here?
>
> axis2_stub_t*
> axis2_stub_create_Calculator(const axutil_env_t *env,
>                                 axis2_char_t *client_home,
>                                 axis2_char_t *endpoint_uri)
>
> Regards,
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.9.3/1786 - Release Date: 11/13/2008 6:01 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message