[Webkit-unassigned] [Bug 117545] [GTK] Remove legacy hack in CodeGeneratorGObject.pm
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 2 00:56:54 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=117545
--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> 2013-08-02 00:56:38 PST ---
(From update of attachment 205012)
View in context: https://bugs.webkit.org/attachment.cgi?id=205012&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:548
> + } elsif ($attribute->signature->extendedAttributes->{"ImplementedBy"}) {
> + my $implementedBy = $attribute->signature->extendedAttributes->{"ImplementedBy"};
> + $implIncludes{"${implementedBy}.h"} = 1;
I wonder if we can get rid of this here, since this is already done a few lines above in this function.
> Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:551
> + push(@txtGetProps, " g_value_set_$gtype(value, ${convertFunction}${getterFunctionName}(" . join(", ", @getterArguments) . ")${postConvertFunction});\n");
> + } else {
> + push(@txtGetProps, " g_value_set_$gtype(value, ${convertFunction}${getterFunctionName}(" . join(", ", @getterArguments) . ")${postConvertFunction});\n");
I wonder why these lines are duplicated, I know it's not introduced by you, but I think this can be simplified. If we can get rid of the implemented by check this could just be
} else {
push(@txtGetProps, " g_value_set_$gtype(value, ${convertFunction}${getterFunctionName}(" . join(", ", @getterArguments) . ")${postConvertFunction});\n");
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list