summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/glosbib.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-06-25 00:01:52 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-25 09:11:16 +0200
commit087213c6a27de31d36d9ccb72a514048a0bb7724 (patch)
tree68fb37aad1e7b7bc51ec384c81ed75e72bbd81a6 /sw/source/ui/misc/glosbib.cxx
parent71d02f5b6ca78935df3d09ec0a5817f5870b056e (diff)
tdf#96099 Remove trivial container typedefs in stoc, svl, svx, sw
Change-Id: I0b4d18d2120ba2ce7d2526332bec199f52393290 Reviewed-on: https://gerrit.libreoffice.org/56363 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/misc/glosbib.cxx')
-rw-r--r--sw/source/ui/misc/glosbib.cxx21
1 files changed, 7 insertions, 14 deletions
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index dc957cb7650c..f5afb1da7a2c 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -138,8 +138,7 @@ void SwGlossaryGroupDlg::Apply()
OUString aActGroup = SwGlossaryDlg::GetCurrGroup();
- for (OUVector_t::const_iterator it(m_RemovedArr.begin());
- it != m_RemovedArr.end(); ++it)
+ for (auto it(m_RemovedArr.cbegin()); it != m_RemovedArr.cend(); ++it)
{
const OUString sDelGroup = it->getToken(0, '\t');
if( sDelGroup == aActGroup )
@@ -166,8 +165,7 @@ void SwGlossaryGroupDlg::Apply()
}
//don't rename before there was one
- for (OUVector_t::const_iterator it(m_RenamedArr.begin());
- it != m_RenamedArr.end(); ++it)
+ for (auto it(m_RenamedArr.cbegin()); it != m_RenamedArr.cend(); ++it)
{
OUString const sOld(it->getToken(0, RENAME_TOKEN_DELIM));
OUString sNew(it->getToken(1, RENAME_TOKEN_DELIM));
@@ -178,8 +176,7 @@ void SwGlossaryGroupDlg::Apply()
sCreatedGroup = sNew;
}
}
- for (OUVector_t::const_iterator it(m_InsertedArr.begin());
- it != m_InsertedArr.end(); ++it)
+ for (auto it(m_InsertedArr.cbegin()); it != m_InsertedArr.cend(); ++it)
{
OUString sNewGroup = *it;
OUString sNewTitle = sNewGroup.getToken(0, GLOS_DELIM);
@@ -246,8 +243,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton, void )
OUString const sEntry(pUserData->sGroupName);
// if the name to be deleted is among the new ones - get rid of it
bool bDelete = true;
- for (OUVector_t::iterator it(m_InsertedArr.begin());
- it != m_InsertedArr.end(); ++it)
+ for (auto it(m_InsertedArr.begin()); it != m_InsertedArr.end(); ++it)
{
if (*it == sEntry)
{
@@ -260,8 +256,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton, void )
// it should probably be renamed?
if(bDelete)
{
- for (OUVector_t::iterator it(m_RenamedArr.begin());
- it != m_RenamedArr.end(); ++it)
+ for (auto it(m_RenamedArr.begin()); it != m_RenamedArr.end(); ++it)
{
if (it->getToken(0, RENAME_TOKEN_DELIM) == sEntry)
{
@@ -297,8 +292,7 @@ IMPL_LINK_NOARG(SwGlossaryGroupDlg, RenameHdl, Button*, void)
// if the name to be renamed is among the new ones - replace
bool bDone = false;
- for (OUVector_t::iterator it(m_InsertedArr.begin());
- it != m_InsertedArr.end(); ++it)
+ for (auto it(m_InsertedArr.begin()); it != m_InsertedArr.end(); ++it)
{
if (*it == sEntry)
{
@@ -391,8 +385,7 @@ bool SwGlossaryGroupDlg::IsDeleteAllowed(const OUString &rGroup)
// as well! Because for non existing region names ReadOnly issues
// true.
- for (OUVector_t::const_iterator it(m_InsertedArr.begin());
- it != m_InsertedArr.end(); ++it)
+ for (auto it(m_InsertedArr.cbegin()); it != m_InsertedArr.cend(); ++it)
{
if (*it == rGroup)
{