author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年03月26日 23:07:49 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年03月26日 23:07:49 +0200 |
commit | 7c09c1f9527ea7ab8accef1c9d68d9a251c2bb8d (patch) | |
tree | 1f02e61df5a6eae90fa09b2ed3823db154e8cd25 /agg-plot/window.cpp | |
parent | 822de113f7d3b9f7bbd0a80159808e0fa3dcdc51 (diff) | |
download | gsl-shell-7c09c1f9527ea7ab8accef1c9d68d9a251c2bb8d.tar.gz |
-rw-r--r-- | agg-plot/window.cpp | 12 |
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp index 6880c79a..4a412b7b 100644 --- a/agg-plot/window.cpp +++ b/agg-plot/window.cpp @@ -64,14 +64,14 @@ int window::ref::calculate(window::ref::node* t, const bmatrix& m, int id) r->matrix = m; } - int nb = list::length(t->tree()); + int nb = list<ref::node*>::length(t->tree()); if (nb > 0) { double frac = 1 / (double) nb; direction_e dir; - ref::node::list *ls = t->tree(dir); + list<ref::node*> *ls = t->tree(dir); if (ls) { bmatrix lm; @@ -117,7 +117,7 @@ window::ref::save_image (agg::rendering_buffer& win_buf, void window::draw_rec(ref::node *n) { - ref::node::list *ls; + list<ref::node*> *ls; for (ls = n->tree(); ls != NULL; ls = ls->next()) draw_rec(ls->content()); @@ -130,7 +130,7 @@ window::draw_rec(ref::node *n) window::ref* window::ref_lookup (ref::node *p, int slot_id) { - ref::node::list *t = p->tree(); + list<ref::node*> *t = p->tree(); for (/* */; t; t = t->next()) { ref *ref = window::ref_lookup(t->content(), slot_id); @@ -274,7 +274,7 @@ window::on_resize(int sx, int sy) void window::cleanup_tree_rec (lua_State *L, int window_index, ref::node* n) { - for (ref::node::list *ls = n->tree(); ls != NULL; ls = ls->next()) + for (list<ref::node*> *ls = n->tree(); ls != NULL; ls = ls->next()) cleanup_tree_rec(L, window_index, ls->content()); ref *ref = n->content(); @@ -335,7 +335,7 @@ int window::attach(sg_plot* plot, const char *spec) for (ptr = next_int (spec, k); ptr; ptr = next_int (ptr, k)) { - ref::node::list* list = n->tree(); + list<ref::node*>* list = n->tree(); if (! list) return -1; |