diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/ui/control-manager.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/ui/control-manager.cpp')
| -rw-r--r-- | src/ui/control-manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/control-manager.cpp b/src/ui/control-manager.cpp index 7ce30e63f..d97405f7a 100644 --- a/src/ui/control-manager.cpp +++ b/src/ui/control-manager.cpp @@ -204,10 +204,10 @@ void ControlManagerImpl::setControlSize(int size, bool force) } else if (force || (size != _size)) { _size = size; - for (std::vector<SPCanvasItem *>::iterator it = _itemList.begin(); it != _itemList.end(); ++it) + for (auto & it : _itemList) { - if (*it) { - updateItem(*it); + if (it) { + updateItem(it); } } |
