Kaydet (Commit) 01caa0ff authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:returnconstant in ScViewUtil

Change-Id: Id28d24e05e0f416ffaab4e22ad1189834e1570ab
Reviewed-on: https://gerrit.libreoffice.org/59131
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4f286af9
...@@ -43,7 +43,7 @@ enum class ScUpdateMode { All, Marks }; ...@@ -43,7 +43,7 @@ enum class ScUpdateMode { All, Marks };
class SC_DLLPUBLIC ScViewUtil class SC_DLLPUBLIC ScViewUtil
{ {
public: public:
static bool ExecuteCharMap( const SvxFontItem& rOldFont, static void ExecuteCharMap( const SvxFontItem& rOldFont,
SfxViewFrame& rFrame ); SfxViewFrame& rFrame );
static bool IsActionShown( const ScChangeAction& rAction, static bool IsActionShown( const ScChangeAction& rAction,
......
...@@ -325,7 +325,7 @@ void ScViewUtil::HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal ...@@ -325,7 +325,7 @@ void ScViewUtil::HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal
rSet.DisableItem( nSlotId ); rSet.DisableItem( nSlotId );
} }
bool ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont, void ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont,
SfxViewFrame& rFrame ) SfxViewFrame& rFrame )
{ {
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
...@@ -334,7 +334,6 @@ bool ScViewUtil::ExecuteCharMap( const SvxFontItem& rOldFont, ...@@ -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 ) ) ); 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)); ScopedVclPtr<SfxAbstractDialog> pDlg(pFact->CreateCharMapDialog(rFrame.GetWindow().GetFrameWeld(), aSet, true));
pDlg->Execute(); pDlg->Execute();
return false;
} }
bool ScViewUtil::IsFullScreen( const SfxViewShell& rViewShell ) bool ScViewUtil::IsFullScreen( const SfxViewShell& rViewShell )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment