diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 17:52:23 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 17:59:40 +0100 |
commit | 4f4e4e40f5b79a4dba46ffedd11cafa7beb08a87 (patch) | |
tree | c158b93b176b084eac024c0e3b5e94e18911f50f /hwpfilter | |
parent | e39c551c6133d0ff2b7074f64ea66563ebcce14b (diff) |
loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 201c1f5af61d..b4fd937aea4e 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -1479,8 +1479,8 @@ void HwpReader::makePStyle(ParaShape * pshape) { if( i > 0 && pshape->tabs[i].position == 0. ) break; - if( pshape->tabs[i].position <= tab_margin ) - continue; + if( pshape->tabs[i].position <= tab_margin ) + continue; padd(ascii("style:position"), sXML_CDATA, Double2Str(WTMM(pshape->tabs[i].position - tab_margin )) + ascii("mm")); if( pshape->tabs[i].type ) @@ -2750,11 +2750,11 @@ void HwpReader::make_text_p0(HWPPara * para, sal_Bool bParaStart) firstspace = 0; else firstspace = 1; - res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); - for( int j = 0 ; j < res; j++ ) - { - str.push_back(dest[j]); - } + res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); + for( int j = 0 ; j < res; j++ ) + { + str.push_back(dest[j]); + } } } } @@ -2833,11 +2833,11 @@ void HwpReader::make_text_p1(HWPPara * para,sal_Bool bParaStart) firstspace = 0; else firstspace = 1; - res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); - for( int j = 0 ; j < res; j++ ) - { - str.push_back(dest[j]); - } + res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); + for( int j = 0 ; j < res; j++ ) + { + str.push_back(dest[j]); + } } } } @@ -2914,11 +2914,11 @@ void HwpReader::make_text_p3(HWPPara * para,sal_Bool bParaStart) firstspace = 0; else firstspace = 1; - res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); - for( int j = 0 ; j < res; j++ ) - { - str.push_back(dest[j]); - } + res = hcharconv(para->hhstr[n]->hh, dest, UNICODE); + for( int j = 0 ; j < res; j++ ) + { + str.push_back(dest[j]); + } } else if (para->hhstr[n]->hh == CH_FIELD) { @@ -3672,19 +3672,19 @@ void HwpReader::makeFormula(TxtBox * hbox) cshape = pPar->GetCharShape(n); if (l >= sizeof(mybuf)-7) break; - res = hcharconv(pPar->hhstr[n]->hh, dest, UNICODE); - for( int j = 0 ; j < res; j++ ){ - c = dest[j]; - if( c < 32 ) - c = ' '; - if( c < 256 ) - mybuf[l++] = sal::static_int_cast<char>(c); - else - { - mybuf[l++] = sal::static_int_cast<char>((c >> 8) & 0xff); - mybuf[l++] = sal::static_int_cast<char>(c & 0xff); - } + res = hcharconv(pPar->hhstr[n]->hh, dest, UNICODE); + for( int j = 0 ; j < res; j++ ){ + c = dest[j]; + if( c < 32 ) + c = ' '; + if( c < 256 ) + mybuf[l++] = sal::static_int_cast<char>(c); + else + { + mybuf[l++] = sal::static_int_cast<char>((c >> 8) & 0xff); + mybuf[l++] = sal::static_int_cast<char>(c & 0xff); } + } } if (l >= sizeof(mybuf)-7) break; |