diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-10 12:29:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-11 07:01:05 +0100 |
commit | 71a61ab2d8b650ebe0655cebd7233959a5a3811e (patch) | |
tree | 80cc6403e59e77853b0f40b4f49bc9ba9950f432 /unotools | |
parent | 30e99b793fc26d2c86363bf8c023cdd2c05940b1 (diff) |
loplugin:indentation in unotools..vbahelper
Change-Id: I76de5678dd21f207e9e9c2a0c446f2c0b9be974e
Reviewed-on: https://gerrit.libreoffice.org/67609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 23 | ||||
-rw-r--r-- | unotools/source/config/saveopt.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/viewoptions.cxx | 4 | ||||
-rw-r--r-- | unotools/source/i18n/charclass.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 4 |
6 files changed, 20 insertions, 19 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index b9aec85c5a2a..fd4fd3dc0fcb 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -302,7 +302,7 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString > for( nPropertyCounter=0; nPropertyCounter<nPropertiesSize; ++nPropertyCounter ) { - lOutNames [nDestinationCounter] = sNodeName + lProperties[nPropertyCounter].Name; + lOutNames [nDestinationCounter] = sNodeName + lProperties[nPropertyCounter].Name; lOutValues[nDestinationCounter] = lProperties[nPropertyCounter].Value; ++nDestinationCounter; } diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index e32e2f05a47d..0ebbf953a712 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -634,19 +634,20 @@ void SvtLinguConfigItem::LoadOptions( const uno::Sequence< OUString > &rProperyN { rOpt.bROIsAutoReplaceUniqueEntries = pROStates[i]; rVal >>= rOpt.bIsAutoReplaceUniqueEntries; } break; case UPH_IS_DIRECTION_TO_SIMPLIFIED : - { rOpt.bROIsDirectionToSimplified = pROStates[i]; - if( ! (rVal >>= rOpt.bIsDirectionToSimplified) ) + { + rOpt.bROIsDirectionToSimplified = pROStates[i]; + if( ! (rVal >>= rOpt.bIsDirectionToSimplified) ) + { + //default is locale dependent: + if (MsLangId::isTraditionalChinese(rOpt.nDefaultLanguage_CJK)) { - //default is locale dependent: - if (MsLangId::isTraditionalChinese(rOpt.nDefaultLanguage_CJK)) - { - rOpt.bIsDirectionToSimplified = false; - } - else - { - rOpt.bIsDirectionToSimplified = true; - } + rOpt.bIsDirectionToSimplified = false; } + else + { + rOpt.bIsDirectionToSimplified = true; + } + } } break; case UPH_IS_USE_CHARACTER_VARIANTS : { rOpt.bROIsUseCharacterVariants = pROStates[i]; rVal >>= rOpt.bIsUseCharacterVariants; } break; diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx index 19a39049e6bc..6ef1403d020f 100644 --- a/unotools/source/config/saveopt.cxx +++ b/unotools/source/config/saveopt.cxx @@ -744,8 +744,8 @@ SvtSaveOptions::SvtSaveOptions() pOptions.reset(new SvtLoadSaveOptions_Impl); pOptions->pSaveOpt.reset(new SvtSaveOptions_Impl); pOptions->pLoadOpt.reset( new SvtLoadOptions_Impl); - } - ++nRefCount; + } + ++nRefCount; pImp = pOptions.get(); } diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx index 3eb5584a6dcd..25d8d21f7ecf 100644 --- a/unotools/source/config/viewoptions.cxx +++ b/unotools/source/config/viewoptions.cxx @@ -358,8 +358,8 @@ void SvtViewOptionsBase_Impl::SetUserData( const OUString& if (xUserData.is()) { const css::beans::NamedValue* pData = lData.getConstArray(); - sal_Int32 c = lData.getLength(); - sal_Int32 i = 0; + sal_Int32 c = lData.getLength(); + sal_Int32 i = 0; for (i=0; i<c; ++i) { if (xUserData->hasByName(pData[i].Name)) diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index 4be3ad89c3b8..0fdb80075c68 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -313,7 +313,7 @@ OUString CharClass::lowercase( const OUString& rStr, sal_Int32 nPos, sal_Int32 n { SAL_WARN( "unotools.i18n", "lowercase: Exception caught!" ); } - return rStr.copy( nPos, nCount ); + return rStr.copy( nPos, nCount ); } sal_Int16 CharClass::getType( const OUString& rStr, sal_Int32 nPos ) const diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index c851a408b736..24e768e717da 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -647,7 +647,7 @@ void SAL_CALL Moderator::onTerminated() { salhelper::ConditionWaiter aWaiter(m_aRep); } - delete this; + delete this; } /** @@ -1350,7 +1350,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo if ( xLockBytes->GetError() == ERRCODE_NONE && ( bError || !xLockBytes->getInputStream().is() ) ) { OSL_FAIL("No InputStream, but no error set!" ); - xLockBytes->SetError( ERRCODE_IO_GENERAL ); + xLockBytes->SetError( ERRCODE_IO_GENERAL ); } return xLockBytes; |