Hello Daniel,
I'm very busy at the moment so please fill bug reports for such issues
(it's the only to ensure they won't be forgotten when I, or someone
else, gets some free time ;-)
Sebastien
p.s. a quick guess is that 'ref' parameters are misreported when simply
passed down to another call. It's probably something easy to fix if
someone wants to try :)
On Mon, 2011-06-20 at 05:22 -0700, Daniel Lidström wrote:
> Hello,
>
> I've just experienced a strange case of
> CheckParametersNullityInVisibleMethodsRule. I don't understand why it
> fires for my code. Here's the "offending" code:
>
> public void SetVarValue( int lEMLArea, ref string szVar, ref string
> szValue, ref int lValue )
> {
> short rc = 0;
>
> rc = _insObjectClass.SetVarValue( lEMLArea, szVar, szValue,
> lValue );
> if (rc < -1)
> throw new InsObjectException(rc);
> }
> The method being called looks like this:
> public virtual short SetVarValue(int lEMLID, object vaVar, string szValue,
> int lValue);
> Why is the rule being fired here?
> /Daniel
> --
> You received this message because you are subscribed to the Google
> Groups "Gendarme" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/gendarme/-/4ps_X0j2d9sJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to gendarme
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/gendarme?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Gendarme" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gendarme?hl=en.