summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-03-27 20:36:45 -0430
committerLuboš Luňák <l.lunak@suse.cz>2012-04-13 18:42:08 +0200
commit89195fdd25533deda8f371cfa2983ec35c057c98 (patch)
tree0dce1d739e44987b6ffd97b8a98a36ed8f3cd485
parentde47936fb8af9ad052687ac68d56a20820a96fdf (diff)
Replace deprecated List with std::vector<rtl::OUString>.
-rw-r--r--sd/source/core/pglink.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/core/pglink.cxx b/sd/source/core/pglink.cxx
index 27ff85e96360..f40dfdbfed91 100644
--- a/sd/source/core/pglink.cxx
+++ b/sd/source/core/pglink.cxx
@@ -101,8 +101,8 @@ SdPageLink::~SdPageLink()
pPage->SetBookmarkName(aBookmarkName);
}
- List aBookmarkList;
- aBookmarkList.Insert(&aBookmarkName);
+ std::vector<rtl::OUString> aBookmarkList;
+ aBookmarkList.push_back(aBookmarkName);
sal_uInt16 nInsertPos = pPage->GetPageNum();
sal_Bool bLink = sal_True;
sal_Bool bReplace = sal_True;
@@ -116,7 +116,8 @@ SdPageLink::~SdPageLink()
bCopy = sal_True;
}
- pDoc->InsertBookmarkAsPage(&aBookmarkList, NULL, bLink, bReplace,
+ std::vector<rtl::OUString> aExchangeList;
+ pDoc->InsertBookmarkAsPage(aBookmarkList, aExchangeList, bLink, bReplace,
nInsertPos, bNoDialogs, NULL, bCopy, sal_True, sal_True);
if( !pDoc->pDocLockedInsertingLinks )