summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-30 19:35:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-03 08:41:11 +0200
commitd3971ec256450e6783920b46f672048b29719949 (patch)
treef4722d0e2bc321cf71b49b7573cf38640e9b28fc /xmloff
parentf50bf3c5225b49b3c6f77f882e35305e5dc5ccd3 (diff)
new loplugin:blockblock
Change-Id: I7b68b70fa4c7234e8882f7627026959a596968fd Reviewed-on: https://gerrit.libreoffice.org/43025 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx11
-rw-r--r--xmloff/source/draw/animationimport.cxx26
2 files changed, 16 insertions, 21 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index a805ef7ac5e4..94275f38cb57 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1176,14 +1176,11 @@ void SvXMLExport::ImplExportAutoStyles()
void SvXMLExport::ImplExportMasterStyles()
{
- {
- // <style:master-styles>
- SvXMLElementExport aElem( *this, XML_NAMESPACE_OFFICE, XML_MASTER_STYLES,
- true, true );
-
- ExportMasterStyles_();
- }
+ // <style:master-styles>
+ SvXMLElementExport aElem( *this, XML_NAMESPACE_OFFICE, XML_MASTER_STYLES,
+ true, true );
+ ExportMasterStyles_();
}
void SvXMLExport::ImplExportContent()
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index 3bb5c93cc5a7..f6b0bf97bbf6 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -874,21 +874,19 @@ void AnimationNodeContext::init_node( const css::uno::Reference< css::xml::sax:
}
case ANA_Target:
{
- {
- Any aTarget( mpHelper->convertTarget( rValue ) );
+ Any aTarget( mpHelper->convertTarget( rValue ) );
- if( xAnimate.is() )
- {
- xAnimate->setTarget( aTarget );
- }
- else if( xIter.is() )
- {
- xIter->setTarget( aTarget );
- }
- else if( xCommand.is() )
- {
- xCommand->setTarget( aTarget );
- }
+ if( xAnimate.is() )
+ {
+ xAnimate->setTarget( aTarget );
+ }
+ else if( xIter.is() )
+ {
+ xIter->setTarget( aTarget );
+ }
+ else if( xCommand.is() )
+ {
+ xCommand->setTarget( aTarget );
}
}
break;