summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-03-11 05:49:38 -0700
committerAndras Timar <andras.timar@collabora.com>2015-03-11 05:49:38 -0700
commit39a2fbda81d54f458a781b416a58c77a2a1ad6db (patch)
tree2905a946dbe6000b71aac8a540bcf78ffbee6d2b
parentbe399b647b3d4d96b938827ee39292073d886839 (diff)
gcc 4.4.7 (Cent OS 5) does not know auto iterators
Change-Id: I03ab90c90448e456fc497fb082ad230a434f9f3a
-rw-r--r--cui/source/options/tsaurls.cxx8
-rw-r--r--filter/source/pdf/impdialog.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/options/tsaurls.cxx b/cui/source/options/tsaurls.cxx
index 9d228b68eebf..521c92401f44 100644
--- a/cui/source/options/tsaurls.cxx
+++ b/cui/source/options/tsaurls.cxx
@@ -37,9 +37,9 @@ TSAURLsDialog::TSAURLsDialog(Window* pParent)
{
css::uno::Sequence<OUString> aUserSetTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get());
- for (auto i = aUserSetTSAURLs.begin(); i != aUserSetTSAURLs.end(); ++i)
+ for (sal_Int32 i = 0; i < aUserSetTSAURLs.getLength(); ++i)
{
- AddTSAURL(*i);
+ AddTSAURL(aUserSetTSAURLs[i]);
}
}
catch (const uno::Exception &e)
@@ -55,7 +55,7 @@ IMPL_LINK_NOARG(TSAURLsDialog, OKHdl_Impl)
css::uno::Sequence<OUString> aNewValue(m_aURLs.size());
size_t n(0);
- for (auto i = m_aURLs.begin(); i != m_aURLs.end(); ++i)
+ for (std::set<OUString>::iterator i = m_aURLs.begin(); i != m_aURLs.end(); ++i)
aNewValue[n++] = *i;
officecfg::Office::Common::Security::Scripting::TSAURLs::set(aNewValue, batch);
batch->commit();
@@ -76,7 +76,7 @@ void TSAURLsDialog::AddTSAURL(const OUString& rURL)
m_pURLListBox->SetUpdateMode(false);
m_pURLListBox->Clear();
- for (auto i = m_aURLs.begin(); i != m_aURLs.end(); ++i)
+ for (std::set<OUString>::iterator i = m_aURLs.begin(); i != m_aURLs.end(); ++i)
{
m_pURLListBox->InsertEntry(*i);
}
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 005dd2fceccb..ccec924d4f56 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -1577,9 +1577,9 @@ IMPL_LINK_NOARG( ImpPDFTabSigningPage, ClickmaPbSignCertSelect )
{
css::uno::Sequence<OUString> aTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get());
- for (auto i = aTSAURLs.begin(); i != aTSAURLs.end(); ++i)
+ for (sal_Int32 i = 0; i < aTSAURLs.getLength(); ++i)
{
- mpLBSignTSA->InsertEntry( *i );
+ mpLBSignTSA->InsertEntry( aTSAURLs[i] );
}
}
catch (const uno::Exception &e)