summaryrefslogtreecommitdiffstats
path: root/src/selcue.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
commit169dff19d4da8d76e69b8e896aa25b0013639c03 (patch)
treea0c070fa95188b5cde708ac285e6a2db9df4a83f /src/selcue.cpp
parentAvoid creating a new document before opening an old document. (diff)
downloadinkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz
inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip
modernize loops
Diffstat (limited to 'src/selcue.cpp')
-rw-r--r--src/selcue.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/selcue.cpp b/src/selcue.cpp
index 72d72daf5..e10b70a96 100644
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
@@ -65,13 +65,13 @@ Inkscape::SelCue::~SelCue()
_sel_changed_connection.disconnect();
_sel_modified_connection.disconnect();
- for (std::vector<SPCanvasItem*>::iterator i = _item_bboxes.begin(); i != _item_bboxes.end(); ++i) {
- sp_canvas_item_destroy(*i);
+ for (auto & _item_bboxe : _item_bboxes) {
+ sp_canvas_item_destroy(_item_bboxe);
}
_item_bboxes.clear();
- for (std::vector<SPCanvasItem*>::iterator i = _text_baselines.begin(); i != _text_baselines.end(); ++i) {
- sp_canvas_item_destroy(*i);
+ for (auto & _text_baseline : _text_baselines) {
+ sp_canvas_item_destroy(_text_baseline);
}
_text_baselines.clear();
}
@@ -132,8 +132,8 @@ void Inkscape::SelCue::_updateItemBboxes(gint mode, int prefs_bbox)
void Inkscape::SelCue::_newItemBboxes()
{
- for (std::vector<SPCanvasItem*>::iterator i = _item_bboxes.begin(); i != _item_bboxes.end(); ++i) {
- sp_canvas_item_destroy(*i);
+ for (auto & _item_bboxe : _item_bboxes) {
+ sp_canvas_item_destroy(_item_bboxe);
}
_item_bboxes.clear();
@@ -197,8 +197,8 @@ void Inkscape::SelCue::_newItemBboxes()
void Inkscape::SelCue::_newTextBaselines()
{
- for (std::vector<SPCanvasItem*>::iterator i = _text_baselines.begin(); i != _text_baselines.end(); ++i) {
- sp_canvas_item_destroy(*i);
+ for (auto & _text_baseline : _text_baselines) {
+ sp_canvas_item_destroy(_text_baseline);
}
_text_baselines.clear();