Haszlakiewicz, Eric wrote:
-----Original Message-----
From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED]
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
I will have a look.
Samisa...
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.9/1809 - Release Date: 11/24/2008 9:03 AM
--
Samisa Abeysinghe
Director, Engineering; WSO2 Inc.
http://www.wso2.com/ - "The Open Source SOA Company"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]