Kim van der Riet <[EMAIL PROTECTED]> wrote:
> I'll get to this later this afternoon. Thanks for the patch.
>
> There is a function to do this already in CppGenerator: setRef(), which
> changes both string and FieldTable to const &. A shorter (but
> equivalent) change would be:
>
> -                     sb.append(indent + (defineFlag ? 
> fieldDomainPair[FIELD_DOMAIN] + " " : "") +
> +                       sb.append(indent + (defineFlag ? 
> setRef(fieldDomainPair[FIELD_DOMAIN]) + " " : "") +

Yes, that looks better, indeed :-)
I suppose it's ok to transform "FieldTable" as well as "string".

Reply via email to