summaryrefslogtreecommitdiff
path: root/sw/source/filter/html
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-13 22:46:38 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-13 22:46:38 -0500
commita93df89c4b7f68a079544d9490de552ff0aae2fb (patch)
treec30aa0d68bd857d7df9688133f61efd960ba5421 /sw/source/filter/html
parentcad9afa15f53d547733fa55f1353772f6d696611 (diff)
SvStringsDtor->std::vector
Diffstat (limited to 'sw/source/filter/html')
-rw-r--r--sw/source/filter/html/htmlftn.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index 39f9a8909150..f10de6ebc07e 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -46,7 +46,7 @@ SV_DECL_PTRARR( SwHTMLTxtFtns, SwTxtFtnPtr, 1, 1 )
struct SwHTMLFootEndNote_Impl
{
SwHTMLTxtFtns aTxtFtns;
- SvStringsDtor aNames;
+ std::vector<String> aNames;
String sName;
String sContent; // Infos fuer die letzte Fussnote
@@ -229,8 +229,7 @@ void SwHTMLParser::FinishFootEndNote()
pFootEndNoteImpl->aTxtFtns.Insert( pTxtFtn,
pFootEndNoteImpl->aTxtFtns.Count() );
- pFootEndNoteImpl->aNames.Insert( new String(pFootEndNoteImpl->sName),
- pFootEndNoteImpl->aNames.Count() );
+ pFootEndNoteImpl->aNames.push_back(pFootEndNoteImpl->sName);
}
pFootEndNoteImpl->sName = aEmptyStr;
pFootEndNoteImpl->sContent = aEmptyStr;
@@ -256,18 +255,17 @@ SwNodeIndex *SwHTMLParser::GetFootEndNoteSection( const String& rName )
if( pFootEndNoteImpl )
{
String aName( rName );
- // TODO: ToUpperAscii
aName.ToUpperAscii();
- sal_uInt16 nCount = pFootEndNoteImpl->aNames.Count();
- for( sal_uInt16 i=0; i<nCount; i++ )
+ size_t nCount = pFootEndNoteImpl->aNames.size();
+ for(size_t i = 0; i < nCount; ++i)
{
- if( *pFootEndNoteImpl->aNames[i] == aName )
+ if(pFootEndNoteImpl->aNames[i] == aName)
{
pStartNodeIdx = pFootEndNoteImpl->aTxtFtns[i]->GetStartNode();
- pFootEndNoteImpl->aNames.DeleteAndDestroy( i, 1 );
+ pFootEndNoteImpl->aNames.erase(pFootEndNoteImpl->aNames.begin() + i);
pFootEndNoteImpl->aTxtFtns.Remove( i, 1 );
- if( !pFootEndNoteImpl->aNames.Count() )
+ if(pFootEndNoteImpl->aNames.empty())
{
delete pFootEndNoteImpl;
pFootEndNoteImpl = 0;