From fc5fd63fe5db73ee6cb25a3f18039e8503494be3 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 24 Nov 2010 23:28:02 -0500 Subject: cppcheck: removed a local var that is never used, plus some cleanups. --- sc/source/ui/formdlg/formula.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index ed9a2681c..a2dbe6ef8 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -97,7 +97,6 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, // title has to be from the view that opened the dialog, // even if it's not the current view - SfxObjectShell* pParentDoc = NULL; if ( pB ) { SfxDispatcher* pMyDisp = pB->GetDispatcher(); @@ -109,14 +108,9 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, pScViewShell = PTR_CAST( ScTabViewShell, pMyViewFrm->GetViewShell() ); if( pScViewShell ) pScViewShell->UpdateInputHandler(TRUE); - pParentDoc = pMyViewFrm->GetObjectShell(); } } } - //if ( !pParentDoc && pScViewShell ) // use current only if above fails - // pParentDoc = pScViewShell->GetObjectShell(); - //if ( pParentDoc ) - // aDocName = pParentDoc->GetTitle(); if ( pDoc == NULL ) pDoc = pViewData->GetDocument(); @@ -209,7 +203,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW, pCell = new ScFormulaCell( pDoc, aCursorPos, rStrExp ); Update(rStrExp); - } // if (!pData) + } } -- cgit v1.2.3