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

Stephan Bergmann sbergman at redhat.com
Tue Jul 11 08:26:38 UTC 2017


 formula/source/ui/dlg/formula.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ff10bc47abe0b04480c9fb5db025afbb5e402b4b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jul 11 10:24:51 2017 +0200

    loplugin:casttovoid
    
    ...as introduced with f6574be0e375e215e6f21830b9e09d77d01b5097
    "FormulaDlg_Impl::MakeTree: pass down current function/operator token: In
    preparation of better argument evaluation."
    
    Change-Id: I2ea39115bc2d2dbbea6fd899c347c98949ec281a

diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index 8a188ceefc0e..9e8e56b4eab1 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -622,7 +622,7 @@ bool FormulaDlg_Impl::CalcStruct( const OUString& rStrExp, bool bForceRecalcStru
 }
 
 
-void FormulaDlg_Impl::MakeTree( StructPage* _pTree, SvTreeListEntry* pParent, const FormulaToken* pFuncToken,
+void FormulaDlg_Impl::MakeTree( StructPage* _pTree, SvTreeListEntry* pParent, const FormulaToken* /*pFuncToken*/,
         const FormulaToken* _pToken, long Count )
 {
     if ( _pToken != nullptr && Count > 0 )
@@ -716,7 +716,6 @@ void FormulaDlg_Impl::MakeTree( StructPage* _pTree, SvTreeListEntry* pParent, co
                     /* TODO: this should depend on parameter classification, if
                      * a scalar value is expected matrix should not be forced.
                      * */
-                    (void)pFuncToken;
                     bool bForceMatrix = (!m_pBtnMatrix->IsChecked() &&
                             (_pToken->GetType() == svDoubleRef || _pToken->GetType() == svExternalDoubleRef));
                     OUString aCellResult;


More information about the Libreoffice-commits mailing list