From 73c0abb8e001e3f48bbd0d04f11482972fe82fe4 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 18 Jan 2018 09:06:33 +0100 Subject: No need for an 'if' when the body is empty. Change-Id: I69e3f2145f95424e7c524127492fd7f8a03ed3ca Reviewed-on: https://gerrit.libreoffice.org/48091 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- sfx2/source/dialog/mgetempl.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 068f2ab6f9a5..1dc87a2c537d 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -348,9 +348,7 @@ IMPL_LINK_NOARG( SfxManageStyleSheetPage, EditStyleSelectHdl_Impl, ListBox&, voi IMPL_LINK_NOARG( SfxManageStyleSheetPage, EditStyleHdl_Impl, Button*, void ) { OUString aTemplName(m_pFollowLb->GetSelectedEntry()); - if (Execute_Impl( SID_STYLE_EDIT, aTemplName, OUString(),static_cast(pStyle->GetFamily()) )) - { - } + Execute_Impl(SID_STYLE_EDIT, aTemplName, OUString(), static_cast(pStyle->GetFamily())); } IMPL_LINK_NOARG( SfxManageStyleSheetPage, EditLinkStyleSelectHdl_Impl, ListBox&, void ) -- cgit v1.2.3