diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-31 18:20:54 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-02 22:24:31 -0430 |
commit | f36adaa38ca7a04144c18902343ab52784f4fbae (patch) | |
tree | 21e60f3f6e6253a6b31e0b45fefabff398d989e7 /sfx2/source | |
parent | 1e3d97dfe9747fa70cdcf642a4a710c3d90cc95c (diff) |
Dont store repository information twice.
Change-Id: Iaf15cd383abec092932b2b024142d959794f0fdb
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/templateonlineview.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sfx2/source/control/templateonlineview.cxx b/sfx2/source/control/templateonlineview.cxx index f33d0bd62d2c..7087b35ff5d8 100644 --- a/sfx2/source/control/templateonlineview.cxx +++ b/sfx2/source/control/templateonlineview.cxx @@ -75,16 +75,19 @@ void TemplateOnlineView::Populate() uno::Reference < uno::XComponentContext > m_context(comphelper::getProcessComponentContext()); // Load from user settings - maUrls = officecfg::Office::Common::Misc::FilePickerPlacesUrls::get(m_context); - maNames = officecfg::Office::Common::Misc::FilePickerPlacesNames::get(m_context); + com::sun::star::uno::Sequence< rtl::OUString > aUrls = + officecfg::Office::Common::Misc::FilePickerPlacesUrls::get(m_context); - for (sal_Int32 i = 0; i < maUrls.getLength() && i < maNames.getLength(); ++i) + com::sun::star::uno::Sequence< rtl::OUString > aNames = + officecfg::Office::Common::Misc::FilePickerPlacesNames::get(m_context); + + for (sal_Int32 i = 0; i < aUrls.getLength() && i < aNames.getLength(); ++i) { TemplateOnlineViewItem *pItem = new TemplateOnlineViewItem(*this,this); pItem->mnId = i+1; - pItem->maTitle = maNames[i]; - pItem->setURL(maUrls[i]); + pItem->maTitle = aNames[i]; + pItem->setURL(aUrls[i]); maRepositories.push_back(pItem); } |