Hello Johannes,

On 01/21/2014 07:06 AM, Johannes Brunen wrote:
>       GetFieldHandlePtr  getHandleEnabled         (void) const;
>
>       EditFieldHandlePtr editHandleEnabled        (void);
>
> is indented one space character to the right with respect to the former
> code. Probably an error in code generator template(s)
> (TemplateFieldContainerBase_h.txt).

thanks for the heads up. The Template contains the following:

@@BeginFieldLoop@@
     @!field.MethodType!@ GetFieldHandlePtr  getHandle
     @!field.MethodType!@ EditFieldHandlePtr editHandle
@@EndFieldLoop@@

(where I've trimmed the lines a bit to avoid wrapping in my mail 
client). So the extra space is the separator between 
@!field.MethodType!@ and the return value (in most cases 
@!field.MethodType!@ is empty, but for types that can be decorated these 
are virtual.
We could fix this by making method type contain a trailing space if it 
is non-empty (which would reduce readability of the template file), 
introduce an if statement to test if method type is empty, or a feature 
of a "conditional space" for fcd2code. All these seem to be quite a bit 
of work for IMHO not a lot of gain in readability - is this causing 
problems at your end?

        Cheers,
                Carsten

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to