summaryrefslogtreecommitdiff
path: root/sc/source/ui/xmlsource
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-20 21:27:01 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-20 22:43:52 +0200
commitcd74d49de55e87a4e801e8a245d198ea51d0ec34 (patch)
tree01f0afd36edcacdbca76440d19f8555311358b6a /sc/source/ui/xmlsource
parent1fc105cec523a081f18ca78fff43e58e3a881232 (diff)
svtools: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I895c950c11499afb278b989565f3eae33aaf4a76
Diffstat (limited to 'sc/source/ui/xmlsource')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index 3ba29ee9f48d..3777b5edec9c 100644
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
@@ -448,8 +448,7 @@ void ScXMLSourceDlg::SetRangeLinkable()
void ScXMLSourceDlg::SelectAllChildEntries(SvTreeListEntry& rEntry)
{
SvTreeListEntries& rChildren = rEntry.GetChildEntries();
- SvTreeListEntries::iterator it = rChildren.begin(), itEnd = rChildren.end();
- for (; it != itEnd; ++it)
+ for (auto const& it : rChildren)
{
SvTreeListEntry& r = *it;
SelectAllChildEntries(r); // select recursively.
@@ -521,8 +520,7 @@ void getFieldLinks(
// No more children. We're done.
return;
- SvTreeListEntries::const_iterator it = rChildren.begin(), itEnd = rChildren.end();
- for (; it != itEnd; ++it)
+ for (auto const& it : rChildren)
{
const SvTreeListEntry& rChild = *it;
OUString aPath = getXPath(rTree, rChild, rNamespaces);