summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/HtmlReader.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-25 10:56:28 +0200
committerNoel Grandin <noel@peralex.com>2016-04-25 11:57:07 +0200
commita5810faae384f7f73e8e835c1f536785a60881d2 (patch)
tree32586f5af184c764d103e64c3c31b366f421c832 /dbaccess/source/ui/misc/HtmlReader.cxx
parentcafc53f8b4c08443524b1da6f4918d49afd45bb5 (diff)
clang-tidy modernize-loop-convert in d*
Change-Id: I0830a41b48e884ef63d32b5873c7007195659bb9
Diffstat (limited to 'dbaccess/source/ui/misc/HtmlReader.cxx')
-rw-r--r--dbaccess/source/ui/misc/HtmlReader.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx
index 2cf1497bff1f..9442f8125c69 100644
--- a/dbaccess/source/ui/misc/HtmlReader.cxx
+++ b/dbaccess/source/ui/misc/HtmlReader.cxx
@@ -134,9 +134,8 @@ void OHTMLReader::NextToken( int nToken )
++m_nTableCount;
{ // can also be TD or TH, if there was no TABLE before
const HTMLOptions& rHtmlOptions = GetOptions();
- for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
+ for (const auto & rOption : rHtmlOptions)
{
- const HTMLOption& rOption = rHtmlOptions[i];
switch( rOption.GetToken() )
{
case HTML_O_WIDTH:
@@ -291,9 +290,8 @@ void OHTMLReader::fetchOptions()
{
m_bInTbl = true;
const HTMLOptions& options = GetOptions();
- for (size_t i = 0, n = options.size(); i < n; ++i)
+ for (const auto & rOption : options)
{
- const HTMLOption& rOption = options[i];
switch( rOption.GetToken() )
{
case HTML_O_SDVAL:
@@ -312,9 +310,8 @@ void OHTMLReader::fetchOptions()
void OHTMLReader::TableDataOn(SvxCellHorJustify& eVal)
{
const HTMLOptions& rHtmlOptions = GetOptions();
- for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
+ for (const auto & rOption : rHtmlOptions)
{
- const HTMLOption& rOption = rHtmlOptions[i];
switch( rOption.GetToken() )
{
case HTML_O_ALIGN:
@@ -340,9 +337,8 @@ void OHTMLReader::TableDataOn(SvxCellHorJustify& eVal)
void OHTMLReader::TableFontOn(FontDescriptor& _rFont,sal_Int32 &_rTextColor)
{
const HTMLOptions& rHtmlOptions = GetOptions();
- for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
+ for (const auto & rOption : rHtmlOptions)
{
- const HTMLOption& rOption = rHtmlOptions[i];
switch( rOption.GetToken() )
{
case HTML_O_COLOR: