summaryrefslogtreecommitdiff
path: root/svl/source/config
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-24 10:51:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-25 07:24:09 +0100
commit6a579702b1128372aa30c86156996e57ba73b2c8 (patch)
tree4b6fe3f9bc45c9776415199d3b32eec768c615ac /svl/source/config
parentfe4de616a4a7cc1d5a2ab701e84477f73a47c61a (diff)
loplugin:flatten in svl
Change-Id: Id5c62c00aa8349468c0d547616424b2637533e7f Reviewed-on: https://gerrit.libreoffice.org/48485 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/config')
-rw-r--r--svl/source/config/cjkoptions.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index 405e8b93eb7c..58c9e0090626 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -116,7 +116,7 @@ SvtCJKOptions_Impl::SvtCJKOptions_Impl() :
void SvtCJKOptions_Impl::SetAll(bool bSet)
{
if (
- !bROCJKFont &&
+ !(!bROCJKFont &&
!bROVerticalText &&
!bROAsianTypography &&
!bROJapaneseFind &&
@@ -124,23 +124,23 @@ void SvtCJKOptions_Impl::SetAll(bool bSet)
!bROChangeCaseMap &&
!bRODoubleLines &&
!bROEmphasisMarks &&
- !bROVerticalCallOut
+ !bROVerticalCallOut)
)
- {
- bCJKFont=bSet;
- bVerticalText=bSet;
- bAsianTypography=bSet;
- bJapaneseFind=bSet;
- bRuby=bSet;
- bChangeCaseMap=bSet;
- bDoubleLines=bSet;
- bEmphasisMarks=bSet;
- bVerticalCallOut=bSet;
-
- SetModified();
- Commit();
- NotifyListeners(ConfigurationHints::NONE);
- }
+ return;
+
+ bCJKFont=bSet;
+ bVerticalText=bSet;
+ bAsianTypography=bSet;
+ bJapaneseFind=bSet;
+ bRuby=bSet;
+ bChangeCaseMap=bSet;
+ bDoubleLines=bSet;
+ bEmphasisMarks=bSet;
+ bVerticalCallOut=bSet;
+
+ SetModified();
+ Commit();
+ NotifyListeners(ConfigurationHints::NONE);
}
void SvtCJKOptions_Impl::Load()