summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 14:22:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-17 11:59:28 +0200
commitb275246c30ce3796cd22f72cd82c58b5cf4c86f0 (patch)
tree45888716a37d4294697fa958be709e3af845c29d /formula
parentf046fed2782f0d4244aff719ba70a56399a2583a (diff)
loplugin:unusedfields in formula..registry
Change-Id: I031654d8bb4f1788d364ef4f8d3bf7a05fadb148 Reviewed-on: https://gerrit.libreoffice.org/54454 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/formula.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index c4d702e32d70..a099c9d62823 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -199,8 +199,6 @@ public:
bool m_bIsShutDown;
bool m_bMakingTree; // in method of constructing tree
- vcl::Font m_aFntBold;
- vcl::Font m_aFntLight;
bool m_bEditFlag;
const IFunctionDescription* m_pFuncDesc;
sal_Int32 m_nArgs;
@@ -331,18 +329,18 @@ FormulaDlg_Impl::FormulaDlg_Impl(Dialog* pParent
m_pMEdit->SetModifyHdl( LINK( this, FormulaDlg_Impl, FormulaHdl ) );
m_pMEFormula->SetSelChangedHdl( LINK( this, FormulaDlg_Impl, FormulaCursorHdl ) );
- m_aFntLight = m_pFtFormula->GetFont();
- m_aFntLight.SetTransparent( true );
- m_aFntBold = m_aFntLight;
- m_aFntBold.SetWeight( WEIGHT_BOLD );
+ vcl::Font aFntLight = m_pFtFormula->GetFont();
+ aFntLight.SetTransparent( true );
+ vcl::Font aFntBold = aFntLight;
+ aFntBold.SetWeight( WEIGHT_BOLD );
- m_pParaWin->SetArgumentFonts( m_aFntBold, m_aFntLight);
+ m_pParaWin->SetArgumentFonts( aFntBold, aFntLight);
// function description for choosing a function is no longer in a different color
- m_pFtHeadLine->SetFont(m_aFntBold);
- m_pFtFuncName->SetFont(m_aFntLight);
- m_pFtFuncDesc->SetFont(m_aFntLight);
+ m_pFtHeadLine->SetFont(aFntBold);
+ m_pFtFuncName->SetFont(aFntLight);
+ m_pFtFuncDesc->SetFont(aFntLight);
}
FormulaDlg_Impl::~FormulaDlg_Impl()