summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 17:13:09 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 17:13:09 +0000
commit6508c429a4a678541bc51df10a8335bbb45f0128 (patch)
tree66c65dd3765654172b4e3bef0c4f116c1cb5515c /src/selection-chemistry.cpp
parentSPPattern c++-sification: replaced gchar* by Glib::ustring (diff)
downloadinkscape-6508c429a4a678541bc51df10a8335bbb45f0128.tar.gz
inkscape-6508c429a4a678541bc51df10a8335bbb45f0128.zip
SPPattern c++-sification: replaced GSList by std::list
(bzr r13341.6.18)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 868a9d743..19eba8ddd 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -3242,13 +3242,11 @@ sp_selection_tile(SPDesktop *desktop, bool apply)
gint pos = SP_OBJECT(items->data)->getRepr()->position();
// create a list of duplicates
- GSList *repr_copies = NULL;
+ std::list<Inkscape::XML::Node*> repr_copies;
for (GSList *i = items; i != NULL; i = i->next) {
Inkscape::XML::Node *dup = SP_OBJECT(i->data)->getRepr()->duplicate(xml_doc);
- repr_copies = g_slist_prepend(repr_copies, dup);
+ repr_copies.push_back(dup);
}
- // restore the z-order after prepends
- repr_copies = g_slist_reverse(repr_copies);
Geom::Rect bbox(desktop->dt2doc(r->min()), desktop->dt2doc(r->max()));