diff options
author | nccuong <cao.cuong.ngo@gmail.com> | 2013-03-04 15:25:02 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-06 12:59:26 +0000 |
commit | a6b91730053fc61416716ae176081b91de52532b (patch) | |
tree | 192e578875f9abe82ca535e3cb794944bac9d9aa /hwpfilter | |
parent | Resolves: #i120306# cleanup failed loading of problematic jpeg (diff) | |
download | core-a6b91730053fc61416716ae176081b91de52532b.tar.gz core-a6b91730053fc61416716ae176081b91de52532b.zip |
fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index b4fd937aea4e..fe997965214a 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -1903,12 +1903,12 @@ void HwpReader::makeTableStyle(Table *tbl) // --------------- cell --------------------- // for (int i = 0 ; i < static_cast<int>(tbl->cells.size()); i++) { - std::list<TCell*>::iterator it = tbl->cells.begin(); + std::list<TCell*>::iterator it = tbl->cells.begin(); - for( int ii = 0; it != tbl->cells.end(); ++it, ii++ ){ - if( ii == i ) - break; - } + for( int ii = 0; it != tbl->cells.end(); ++it, ii++ ){ + if( ii == i ) + break; + } TCell *tcell = *it; sprintf(buf,"Table%d.%c%d",hbox->style.boxnum, 'A'+ tcell->nColumnIndex, tcell->nRowIndex +1); @@ -2858,8 +2858,9 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) int curr = para->cshape.index; if( d->bFirstPara && d->bInBody ) { - if( !pstart ) + if ( !pstart ) { STARTP; + } strcpy(buf,"[문서의 처음]"); /* "Begin of Document" */ padd(ascii("text:name"), sXML_CDATA, OUString(buf, strlen(buf), RTL_TEXTENCODING_UTF8)); rstartEl(ascii("text:bookmark"), rList); @@ -2869,8 +2870,9 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) } if( d->bInHeader ) { - if( !pstart ) + if ( !pstart ) { STARTP; + } makeShowPageNum(); d->bInHeader = false; } @@ -3451,12 +3453,12 @@ void HwpReader::makeTable(TxtBox * hbox) int j = -1, k = -1; for (int i = 0 ; i < static_cast<int>(tbl->cells.size()); i++) { - std::list<TCell*>::iterator it = tbl->cells.begin(); + std::list<TCell*>::iterator it = tbl->cells.begin(); - for( int ii = 0; it != tbl->cells.end(); ++it, ii++ ){ - if( ii == i ) - break; - } + for( int ii = 0; it != tbl->cells.end(); ++it, ii++ ){ + if( ii == i ) + break; + } TCell *tcell = *it; if( tcell->nRowIndex > j ) |