diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-03 17:22:48 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-06 22:12:50 +0200 |
commit | 5709b98cc23c18074e4d99abafc487e3f37a2eea (patch) | |
tree | 51f025ba5a941d100081a8768041fdd6111c712c /sw | |
parent | cb2ccc4321eba9f42ffb1ecb8a781d068ecf5ab4 (diff) |
It does not make sense to iterate on a list with a constant index
Change-Id: If0d12158c23df10d003d9f7ad5bb2bd003b75aa3
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/envelp/envfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index 3c65be1c1d3d..a74fe4788bd0 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -189,7 +189,7 @@ SwEnvFmtPage::SwEnvFmtPage(Window* pParent, const SfxItemSet& rSet) bool bFound = false; while (nPos < m_pSizeFormatBox->GetEntryCount() && !bFound) { - OUString aEntryName = m_pSizeFormatBox->GetEntry(i); + OUString aEntryName = m_pSizeFormatBox->GetEntry(nPos); if (aEntryName < aPaperName) nPos++; else |