goffice r2274 - in trunk: . goffice/graph goffice/math goffice/utils
- From: jbrefort svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2274 - in trunk: . goffice/graph goffice/math goffice/utils
- Date: Tue, 11 Nov 2008 16:23:49 +0000 (UTC)
Author: jbrefort
Date: Tue Nov 11 16:23:48 2008
New Revision: 2274
URL: http://svn.gnome.org/viewvc/goffice?rev=2274&view=rev
Log:
2008-11-11 Jean Brefort <jean brefort normalesup org>
* goffice/math/go-cspline.c: (go_cspline_init): don't use cast with
g_new.
* goffice/utils/go-bezier.c: (go_bezier_spline_init): create a struct,
not a pointer to a struct, and don't cast.
Modified:
trunk/ChangeLog
trunk/goffice/graph/gog-plot.c
trunk/goffice/math/go-cspline.c
trunk/goffice/utils/go-bezier.c
Modified: trunk/goffice/graph/gog-plot.c
==============================================================================
--- trunk/goffice/graph/gog-plot.c (original)
+++ trunk/goffice/graph/gog-plot.c Tue Nov 11 16:23:48 2008
@@ -679,7 +679,7 @@
gog_series_set_index (series, i++, FALSE);
if (!gog_series_has_legend (series))
no_legend++;
- }
+ }
}
plot->full_cardinality =
Modified: trunk/goffice/math/go-cspline.c
==============================================================================
--- trunk/goffice/math/go-cspline.c (original)
+++ trunk/goffice/math/go-cspline.c Tue Nov 11 16:23:48 2008
@@ -85,7 +85,7 @@
if (limits >= GO_CSPLINE_MAX || !SUFFIX(go_range_increasing) (x, n) || n < 3)
return NULL;
nm1 = n - 1;
- sp = (struct SUFFIX(GOCSpline)*) g_new0 (struct SUFFIX(GOCSpline), 1);
+ sp = g_new0 (struct SUFFIX(GOCSpline), 1);
sp->n = n;
sp->x = x;
sp->y = y;
Modified: trunk/goffice/utils/go-bezier.c
==============================================================================
--- trunk/goffice/utils/go-bezier.c (original)
+++ trunk/goffice/utils/go-bezier.c Tue Nov 11 16:23:48 2008
@@ -70,7 +70,7 @@
*/
/* Create and initialize the structure */
- sp = (struct GOBezierSpline *) g_new0 (struct GOBezierSpline *, 1);
+ sp = g_new0 (struct GOBezierSpline, 1);
i = (closed)? 3 * n: 3 * n - 2;
sp->x = g_new (double, i);
sp->y = g_new (double, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]