diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-07-22 21:36:49 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-07-22 22:09:30 -0400 |
commit | 9a910b7b6bb3dde79ac40dee763d734d6b140855 (patch) | |
tree | 5c41d4368d79c9df8a40f8d210164d7842221e97 /sw/source/filter/html/htmlcss1.cxx | |
parent | 72f1b4fe4f596fed2101503c0c2d6243b6fc568c (diff) |
Adjusted for HTMLParser::GetOptions() return type change.
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r-- | sw/source/filter/html/htmlcss1.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index 7bb7c96a0784..4c5b932226ee 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -1723,12 +1723,12 @@ void SwHTMLParser::NewStyle() { String sType; - const HTMLOptions *pOptions2 = GetOptions(); - for( sal_uInt16 i = pOptions2->Count(); i; ) + const HTMLOptions& rOptions2 = GetOptions(); + for (size_t i = rOptions2.size(); i; ) { - const HTMLOption *pOption = (*pOptions2)[--i]; - if( HTML_O_TYPE==pOption->GetToken() ) - sType = pOption->GetString(); + const HTMLOption& rOption = rOptions2[--i]; + if( HTML_O_TYPE == rOption.GetToken() ) + sType = rOption.GetString(); } bIgnoreRawData = sType.Len() && @@ -1818,20 +1818,20 @@ void SwHTMLParser::InsertLink() { String sRel, sHRef, sType; - const HTMLOptions *pOptions2 = GetOptions(); - for( sal_uInt16 i = pOptions2->Count(); i; ) + const HTMLOptions& rOptions2 = GetOptions(); + for (size_t i = rOptions2.size(); i; ) { - const HTMLOption *pOption = (*pOptions2)[--i]; - switch( pOption->GetToken() ) + const HTMLOption& rOption = rOptions2[--i]; + switch( rOption.GetToken() ) { case HTML_O_REL: - sRel = pOption->GetString(); + sRel = rOption.GetString(); break; case HTML_O_HREF: - sHRef = URIHelper::SmartRel2Abs( INetURLObject( sBaseURL ), pOption->GetString(), Link(), false ); + sHRef = URIHelper::SmartRel2Abs( INetURLObject( sBaseURL ), rOption.GetString(), Link(), false ); break; case HTML_O_TYPE: - sType = pOption->GetString(); + sType = rOption.GetString(); break; } } |