[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 16 06:56:37 UTC 2018


 sc/source/ui/inc/viewutil.hxx  |    2 +-
 sc/source/ui/view/viewutil.cxx |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 01caa0ffbca6f1ee30cf0f25d2e462b12cb7535c
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Aug 15 13:42:09 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Aug 16 08:56:07 2018 +0200

    loplugin:returnconstant in ScViewUtil
    
    Change-Id: Id28d24e05e0f416ffaab4e22ad1189834e1570ab
    Reviewed-on: https://gerrit.libreoffice.org/59131
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/ui/inc/viewutil.hxx b/sc/source/ui/inc/viewutil.hxx
index 5678033c969a..8d57370b950f 100644
--- a/sc/source/ui/inc/viewutil.hxx
+++ b/sc/source/ui/inc/viewutil.hxx
@@ -43,7 +43,7 @@ enum class ScUpdateMode { All, Marks };
 class SC_DLLPUBLIC ScViewUtil
 {
 public:
-    static bool ExecuteCharMap( const SvxFontItem&  rOldFont,
+    static void ExecuteCharMap( const SvxFontItem&  rOldFont,
                                 SfxViewFrame&       rFrame );
 
     static bool IsActionShown( const ScChangeAction& rAction,
diff --git a/sc/source/ui/view/viewutil.cxx b/sc/source/ui/view/viewutil.cxx
index 60689970c0b4..c2150253e692 100644
--- a/sc/source/ui/view/viewutil.cxx
+++ b/sc/source/ui/view/viewutil.cxx
@@ -325,7 +325,7 @@ void ScViewUtil::HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal
         rSet.DisableItem( nSlotId );
 }
 
-bool ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont,
+void ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont,
                                  SfxViewFrame& rFrame )
 {
     SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
@@ -334,7 +334,6 @@ bool ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont,
     aSet.Put( SvxFontItem( rOldFont.GetFamily(), rOldFont.GetFamilyName(), rOldFont.GetStyleName(), rOldFont.GetPitch(), rOldFont.GetCharSet(), aSet.GetPool()->GetWhich( SID_ATTR_CHAR_FONT ) ) );
     ScopedVclPtr<SfxAbstractDialog> pDlg(pFact->CreateCharMapDialog(rFrame.GetWindow().GetFrameWeld(), aSet, true));
     pDlg->Execute();
-    return false;
 }
 
 bool ScViewUtil::IsFullScreen( const SfxViewShell& rViewShell )


More information about the Libreoffice-commits mailing list