[gnumeric] Code cleanup.



commit f35d43a1bf771f7101fb5448a8339ad0b2177b25
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 30 08:17:32 2014 -0400

    Code cleanup.

 plugins/openoffice/openoffice-read.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index daaea0c..6b59924 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -7274,8 +7274,7 @@ oo_named_expr (GsfXMLIn *xin, xmlChar const **attrs)
                        g_free (tmp);
 
                        if (texpr == NULL ||
-                           GNM_EXPR_GET_OPER (texpr->expr)
-                           != GNM_EXPR_OP_CELLREF) {
+                           !gnm_expr_top_get_cellref (texpr)) {
                                oo_warning (xin, _("expression '%s' @ '%s' "
                                                   "is not a cellref"),
                                            name, base_str);
@@ -7287,7 +7286,6 @@ oo_named_expr (GsfXMLIn *xin, xmlChar const **attrs)
                        }
                        if (texpr != NULL)
                                gnm_expr_top_unref (texpr);
-
                }
 
                f_type = odf_get_formula_type (xin, &expr_str);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]