diff options
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/FormulaHelper.cxx | 3 | ||||
-rw-r--r-- | formula/source/ui/dlg/funcpage.cxx | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx index 73a5dd695292..2ffe25e35c0c 100644 --- a/formula/source/ui/dlg/FormulaHelper.cxx +++ b/formula/source/ui/dlg/FormulaHelper.cxx @@ -91,7 +91,6 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula, if ( ppFDesc ) { *ppFDesc = nullptr; - const OUString sTemp( aFname ); const sal_uInt32 nCategoryCount = m_pFunctionManager->getCount(); for(sal_uInt32 j= 0; j < nCategoryCount && !*ppFDesc; ++j) { @@ -100,7 +99,7 @@ bool FormulaHelper::GetNextFunc( const OUString& rFormula, for(sal_uInt32 i = 0 ; i < nCount; ++i) { const IFunctionDescription* pCurrent = pCategory->getFunction(i); - if ( pCurrent->getFunctionName().equalsIgnoreAsciiCase(sTemp) ) + if ( pCurrent->getFunctionName().equalsIgnoreAsciiCase(aFname) ) { *ppFDesc = pCurrent; break; diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx index d629ca3bea3f..77bf5167536b 100644 --- a/formula/source/ui/dlg/funcpage.cxx +++ b/formula/source/ui/dlg/funcpage.cxx @@ -38,9 +38,7 @@ FormulaListBox::FormulaListBox( vcl::Window* pParent, WinBits nBits ): void FormulaListBox::KeyInput( const KeyEvent& rKEvt ) { - KeyEvent aKEvt=rKEvt; - - if(aKEvt.GetCharCode()==' ') + if(rKEvt.GetCharCode()==' ') DoubleClick(); } |