axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haszlakiewicz, Eric" <EHAS...@transunion.com>
Subject RE: Proposal: Using const in generated code
Date Mon, 24 Nov 2008 19:19:20 GMT

>-----Original Message-----
>From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
>Sent: Friday, November 14, 2008 7:50 AM
>To: Apache AXIS C Developers List
>Subject: Re: Proposal: Using const in generated code
>
>+1.
>It is a useful  suggestion. Would you like to provide a patch?
>

There already are a couple that address (portions of?) this:
https://issues.apache.org/jira/browse/AXIS2C-1280 and
https://issues.apache.org/jira/browse/AXIS2C-1271

eric

>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)
>>

---------------------------------------------------------------------
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