diff options
author | Noel Grandin <noel@peralex.com> | 2012-02-06 12:50:59 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-02-08 13:15:30 +0100 |
commit | 0979307bbf769399f97da10a29f04936a6cf117c (patch) | |
tree | f04aea01ba738e29902aceaeeb720fc73a00a408 /xmloff | |
parent | 809fd00863026cdff4bf2de7d02956d39e867eeb (diff) |
tools/table.hxx to std::map conversion in SV, SVL and SVX modules
This patch converts one use of tools/table.hxx in
svl/inc/svl/zforlist.hxx, whose use in turn spans 3 modules.
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 7025a3d78a42..517a9bf9de25 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -1699,10 +1699,11 @@ void SvXMLNumFmtExport::Export( sal_Bool bIsAutoStyle ) sal_uInt32 nDefaultIndex = 0; SvNumberFormatTable& rTable = pFormatter->GetEntryTable( NUMBERFORMAT_DEFINED, nDefaultIndex, nLang ); - pFormat = rTable.First(); - while (pFormat) + SvNumberFormatTable::iterator it2 = rTable.begin(); + while (it2 != rTable.end()) { - nKey = rTable.GetCurKey(); + nKey = it2->first; + pFormat = it2->second; if (!pUsedList->IsUsed(nKey)) { DBG_ASSERT((pFormat->GetType() & NUMBERFORMAT_DEFINED) != 0, "a not user defined numberformat found"); @@ -1712,7 +1713,7 @@ void SvXMLNumFmtExport::Export( sal_Bool bIsAutoStyle ) pUsedList->SetUsed(nKey); } - pFormat = rTable.Next(); + ++it2; } } } |