summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/newstyle.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-07-27 00:43:34 +0200
committerMichael Stahl <mstahl@redhat.com>2013-07-27 00:45:21 +0200
commit3a46d91f8de420f38dd763028e91229c846dff52 (patch)
treef34ae4072fdd9ff6f06dbd4bac49072ff81f5c60 /sfx2/source/dialog/newstyle.cxx
parent197010643e7e1b8c973013efa9034ffc9bdb56c0 (diff)
SfxStyleSheetBasePool: remove internal iterator
The clients always start with First() anyway so they might as well use external iterators, which makes calling First() in certain situations just so the internal iterator is invalidated unnecessary. Change-Id: I0948576c20410136448e8b85311c21a257469bc7
Diffstat (limited to 'sfx2/source/dialog/newstyle.cxx')
-rw-r--r--sfx2/source/dialog/newstyle.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/dialog/newstyle.cxx b/sfx2/source/dialog/newstyle.cxx
index a81cd6d2a38e..18780f20c3b3 100644
--- a/sfx2/source/dialog/newstyle.cxx
+++ b/sfx2/source/dialog/newstyle.cxx
@@ -81,11 +81,13 @@ SfxNewStyleDlg::SfxNewStyleDlg( Window* pParent, SfxStyleSheetBasePool& rInPool
aColBox.SetDoubleClickHdl(LINK(this, SfxNewStyleDlg, OKHdl));
// aColBox.SetAccessibleName(SfxResId(FL_COL).toString());
- SfxStyleSheetBase *pStyle = rPool.First();
+ SfxStyleSheetIterator iter(&rPool,
+ rPool.GetSearchFamily(), rPool.GetSearchMask());
+ SfxStyleSheetBase *pStyle = iter.First();
while ( pStyle )
{
aColBox.InsertEntry(pStyle->GetName());
- pStyle = rPool.Next();
+ pStyle = iter.Next();
}
}