[gimp] app: minor readability cleanup in plug_in_params_to_args()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: minor readability cleanup in plug_in_params_to_args()
- Date: Thu, 11 Jun 2015 00:03:30 +0000 (UTC)
commit 3c4aead23faad1746940af08480e620994bd8a30
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 11 02:03:06 2015 +0200
app: minor readability cleanup in plug_in_params_to_args()
app/plug-in/plug-in-params.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/app/plug-in/plug-in-params.c b/app/plug-in/plug-in-params.c
index 2a2f257..d9932c9 100644
--- a/app/plug-in/plug-in-params.c
+++ b/app/plug-in/plug-in-params.c
@@ -75,18 +75,17 @@ plug_in_params_to_args (GParamSpec **pspecs,
/* are there param specs left? */
if (pspec_index < n_pspecs)
{
+ GType pspec_gtype;
GimpPDBArgType pspec_arg_type;
- pspec_arg_type = gimp_pdb_compat_arg_type_from_gtype
- (G_PARAM_SPEC_VALUE_TYPE (pspecs[pspec_index]));
+ pspec_gtype = 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
* the passed pdb type, use the param spec's GType
*/
if (pspec_arg_type == params[i].type)
- {
- type = G_PARAM_SPEC_VALUE_TYPE (pspecs[pspec_index]);
- }
+ type = pspec_gtype;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]