app: minor readability cleanup in plug_in_params_to_args()

This commit is contained in:
Michael Natterer
2015-06-11 02:03:06 +02:00
parent 22dbdbe1fb
commit 3c4aead23f

View File

@ -75,18 +75,17 @@ plug_in_params_to_args (GParamSpec **pspecs,
/* are there param specs left? */ /* are there param specs left? */
if (pspec_index < n_pspecs) if (pspec_index < n_pspecs)
{ {
GType pspec_gtype;
GimpPDBArgType pspec_arg_type; GimpPDBArgType pspec_arg_type;
pspec_arg_type = gimp_pdb_compat_arg_type_from_gtype pspec_gtype = G_PARAM_SPEC_VALUE_TYPE (pspecs[pspec_index]);
(G_PARAM_SPEC_VALUE_TYPE (pspecs[pspec_index])); pspec_arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec_gtype);
/* if the param spec's GType, mapped to a pdb type, matches /* if the param spec's GType, mapped to a pdb type, matches
* the passed pdb type, use the param spec's GType * the passed pdb type, use the param spec's GType
*/ */
if (pspec_arg_type == params[i].type) if (pspec_arg_type == params[i].type)
{ type = pspec_gtype;
type = G_PARAM_SPEC_VALUE_TYPE (pspecs[pspec_index]);
}
} }
} }