summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/acredlin.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-02 14:45:37 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-03 00:02:44 -0500
commit3d7370fbe5794cb064b69ed5cb4754d0d17e55c7 (patch)
tree3f8b82da05830f41184472bc231b7afe627f553a /sc/source/ui/miscdlgs/acredlin.cxx
parent8792229bdbe127c01eedc23c0af03d99ec3310db (diff)
Use std::set to store user names instead.
Diffstat (limited to 'sc/source/ui/miscdlgs/acredlin.cxx')
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index fee43d4b50d0..ae100b006428 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -239,9 +239,10 @@ void ScAcceptChgDlg::Init()
pChanges->SetModifiedLink( LINK( this, ScAcceptChgDlg,ChgTrackModHdl));
aChangeViewSet.SetTheAuthorToShow(pChanges->GetUser());
pTPFilter->ClearAuthors();
- ScStrCollection aUserColl=pChanges->GetUserCollection();
- for(sal_uInt16 i=0;i<aUserColl.GetCount();i++)
- pTPFilter->InsertAuthor(aUserColl[i]->GetString());
+ const std::set<rtl::OUString>& rUserColl = pChanges->GetUserCollection();
+ std::set<rtl::OUString>::const_iterator it = rUserColl.begin(), itEnd = rUserColl.end();
+ for (; it != itEnd; ++it)
+ pTPFilter->InsertAuthor(*it);
}
ScChangeViewSettings* pViewSettings=pDoc->GetChangeViewSettings();