diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-10 20:47:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-11 11:20:43 +0200 |
commit | 2d582244680e7f6dec6e4a466e276f93ccb01dc9 (patch) | |
tree | b0e880ddfb3ce1ea2f47151b648e7fbb55132f08 /uui | |
parent | 74012c48d99634a7556a86f77e9522024f2afdb2 (diff) |
loplugin:flatten
Change-Id: I6560756eb63856a22b43e3e65a7b7843cd2d5376
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100447
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/secmacrowarnings.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx index 2f987b241fe9..1f048f0cb663 100644 --- a/uui/source/secmacrowarnings.cxx +++ b/uui/source/secmacrowarnings.cxx @@ -158,21 +158,21 @@ void MacroWarning::SetStorage( const css::uno::Reference < css::embed::XStorage mxStore = rxStore; maODFVersion = aODFVersion; sal_Int32 nCnt = rInfos.getLength(); - if( mxStore.is() && nCnt > 0 ) - { - mpInfos = &rInfos; - OUString aCN_Id("CN"); - OUStringBuffer s = GetContentPart( rInfos[ 0 ].Signer->getSubjectName(), aCN_Id ); + if( !(mxStore.is() && nCnt > 0) ) + return; - for( sal_Int32 i = 1 ; i < nCnt ; ++i ) - { - s.append("\n"); - s.append(GetContentPart( rInfos[ i ].Signer->getSubjectName(), aCN_Id )); - } + mpInfos = &rInfos; + OUString aCN_Id("CN"); + OUStringBuffer s = GetContentPart( rInfos[ 0 ].Signer->getSubjectName(), aCN_Id ); - mxSignsFI->set_label(s.makeStringAndClear()); - mxViewSignsBtn->set_sensitive(true); + for( sal_Int32 i = 1 ; i < nCnt ; ++i ) + { + s.append("\n"); + s.append(GetContentPart( rInfos[ i ].Signer->getSubjectName(), aCN_Id )); } + + mxSignsFI->set_label(s.makeStringAndClear()); + mxViewSignsBtn->set_sensitive(true); } void MacroWarning::SetCertificate( const css::uno::Reference< css::security::XCertificate >& _rxCert ) |