summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/mgetempl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 10:33:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 13:45:17 +0200
commitae622df5df4094481ef4212dbe2ba8449e47871f (patch)
treec140eedc702566e33e8035952d3a1aaceb827c6c /sfx2/source/dialog/mgetempl.cxx
parent825c8f1b6e2c1e8c686f4656337fa2879ade481d (diff)
clang-tidy readability-simplify-boolean-expr in sfx2
Change-Id: I388e0160daf6a7359881acb82145460ad5bbbbbf Reviewed-on: https://gerrit.libreoffice.org/36929 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/mgetempl.cxx')
-rw-r--r--sfx2/source/dialog/mgetempl.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index 0989f25ac140..fca6b357efae 100644
--- a/sfx2/source/dialog/mgetempl.cxx
+++ b/sfx2/source/dialog/mgetempl.cxx
@@ -398,10 +398,7 @@ bool SfxManageStyleSheetPage::Execute_Impl(
nId, SfxCallMode::SYNCHRON | SfxCallMode::RECORD | SfxCallMode::MODAL,
pItems );
- if ( !pItem )
- return false;
-
- return true;
+ return pItem != nullptr;
}