diff options
author | August Sodora <augsod@gmail.com> | 2012-01-12 22:25:49 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2012-01-12 22:25:49 -0500 |
commit | cc651ffb0b0a2e2c9b07e5043c4474c026082445 (patch) | |
tree | cfc52d4465964d5222525800a3c481ad832918af /sw/source/ui/utlui | |
parent | dea42954b5e9a22f0d498cad0cc3c373ec5940e8 (diff) |
SvStringsDtor->std::vector
Diffstat (limited to 'sw/source/ui/utlui')
-rw-r--r-- | sw/source/ui/utlui/gloslst.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/ui/utlui/gloslst.cxx b/sw/source/ui/utlui/gloslst.cxx index cd9b0b4f7d3c..9e507d87b3b7 100644 --- a/sw/source/ui/utlui/gloslst.cxx +++ b/sw/source/ui/utlui/gloslst.cxx @@ -320,7 +320,7 @@ void SwGlossaryList::Update() { for( size_t nPath = 0; nPath < pPathArr->size(); nPath++ ) { - SvStringsDtor aFoundGroupNames; + std::vector<String> aFoundGroupNames; std::vector<String*> aFiles; SvPtrarr aDateTimeArr( 16, 16 ); @@ -333,8 +333,7 @@ void SwGlossaryList::Update() String sName( pTitle->Copy( 0, pTitle->Len() - sExt.Len() )); - aFoundGroupNames.Insert( new String(sName), - aFoundGroupNames.Count()); + aFoundGroupNames.push_back(sName); sName += GLOS_DELIM; sName += String::CreateFromInt32( static_cast<sal_uInt16>(nPath) ); AutoTextGroup* pFound = FindGroup( sName ); @@ -371,10 +370,9 @@ void SwGlossaryList::Update() { sal_Bool bFound = sal_False; String sCompareGroup = pGroup->sName.GetToken(0, GLOS_DELIM); - for( sal_uInt16 j = 0; j < aFoundGroupNames.Count() && !bFound; ++j) - { - bFound = sCompareGroup == *aFoundGroupNames[j]; - } + for(std::vector<String>::const_iterator j = aFoundGroupNames.begin(); j != aFoundGroupNames.end() && !bFound; ++j) + bFound = (sCompareGroup == *j); + if(!bFound) { aGroupArr.Remove(i - 1); |