diff options
Diffstat (limited to 'sc/source/ui/dbgui/sfiltdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/sfiltdlg.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx index 33010a009833..583b5d61517c 100644 --- a/sc/source/ui/dbgui/sfiltdlg.cxx +++ b/sc/source/ui/dbgui/sfiltdlg.cxx @@ -163,19 +163,16 @@ void ScSpecialFilterDlg::Init( const SfxItemSet& rArgSet ) pLbFilterArea->Clear(); pLbFilterArea->InsertEntry( aStrUndefined, 0 ); - if (!pRangeNames->empty()) + ScRangeName::const_iterator itr = pRangeNames->begin(), itrEnd = pRangeNames->end(); + for (; itr != itrEnd; ++itr) { - ScRangeName::const_iterator itr = pRangeNames->begin(), itrEnd = pRangeNames->end(); - for (; itr != itrEnd; ++itr) - { - if (!itr->second->HasType(ScRangeData::Type::Criteria)) - continue; + if (!itr->second->HasType(ScRangeData::Type::Criteria)) + continue; - const sal_Int32 nInsert = pLbFilterArea->InsertEntry(itr->second->GetName()); - OUString aSymbol; - itr->second->GetSymbol(aSymbol); - pLbFilterArea->SetEntryData(nInsert, new OUString(aSymbol)); - } + const sal_Int32 nInsert = pLbFilterArea->InsertEntry(itr->second->GetName()); + OUString aSymbol; + itr->second->GetSymbol(aSymbol); + pLbFilterArea->SetEntryData(nInsert, new OUString(aSymbol)); } // is there a stored source range? |