diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-17 13:14:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-23 08:08:56 +0200 |
commit | c45d3badc96481db093560b94d8bf51ead6bd17c (patch) | |
tree | 4bb6c9220678a12b327e46ca2acd01e77fc8e2c4 /svtools/source/svhtml/parhtml.cxx | |
parent | Updated core (diff) | |
download | core-c45d3badc96481db093560b94d8bf51ead6bd17c.tar.gz core-c45d3badc96481db093560b94d8bf51ead6bd17c.zip |
new loplugin: commaoperator
Change-Id: I03f24e61f696b7619855e3c7010aa0d874e5a4ff
Diffstat (limited to 'svtools/source/svhtml/parhtml.cxx')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index d1a081bbabf8..0ac318cdb337 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1502,12 +1502,16 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) if( bStripCRLF ) aToken = aToken.replaceAt( nPos, 1, "" ); else - nPos++, nLen++; + { + nPos++; + nLen++; + } break; case '\\': if( bOldEscape ) { - nPos++, nLen++; + nPos++; + nLen++; } else { @@ -1519,10 +1523,14 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) case '\'': bDone = !bOldEscape && cChar==cEnd; if( !bDone ) - nPos++, nLen++; + { + nPos++; + nLen++; + } break; default: - nPos++, nLen++; + nPos++; + nLen++; break; } } @@ -1544,7 +1552,10 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) case ' ': bDone = !bOldEscape; if( !bDone ) - nPos++, nLen++; + { + nPos++; + nLen++; + } break; case '\t': @@ -1556,7 +1567,8 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) case '\\': if( bOldEscape ) { - nPos++, nLen++; + nPos++; + nLen++; } else { @@ -1567,7 +1579,10 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) default: if( HTML_ISPRINTABLE( c ) ) - nPos++, nLen++; + { + nPos++; + nLen++; + } else bDone = true; break; |