diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-25 15:37:15 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-25 15:54:21 +0200 |
commit | 0da4e600e6df511edc20aa21353911f907e161d8 (patch) | |
tree | e38c679ce7b62b898cfc5ebd3cdc79d04b818d61 /sw/source/core/unocore/unoportenum.cxx | |
parent | af60018734751c589d7b76b6a755ac7c2dee3a40 (diff) |
Let SwTextBoxHelper::findTextBoxes() return a set
The intention was to have a container where it's fast to look elements
up, and list is a linked list, so it doesn't fit.
Change-Id: I3196c8dee96ecd4a6f464b74fd5141b27f1773b8
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index c4d49ca55b93..f05ccfb86c9f 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -690,7 +690,7 @@ lcl_ExportHints( const bool bRightMoveForbidden, bool & o_rbCursorMoved, sal_Int32 & o_rNextAttrPosition, - std::list<SwFrmFmt*>& rTextBoxes) + std::set<SwFrmFmt*>& rTextBoxes) { // if the attribute has a dummy character, then xRef is set (except META) // otherwise, the portion for the attribute is inserted into rPortions! @@ -1242,7 +1242,7 @@ static void lcl_CreatePortions( PortionStack_t PortionStack; PortionStack.push( PortionList_t(&i_rPortions, (const SwTxtAttr *)0) ); - std::list<SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); + std::set<SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); bool bAtEnd( false ); while (!bAtEnd) // every iteration consumes at least current character! |