summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-11-24 23:28:02 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-11-24 23:28:02 -0500
commitfc5fd63fe5db73ee6cb25a3f18039e8503494be3 (patch)
tree422b0e891b4509ccc4d8161e175c32bb6f5aa1cf
parent0a9d5945c8c79b1affab8a9c460194fdf7641efe (diff)
cppcheck: removed a local var that is never used, plus some cleanups.
-rw-r--r--sc/source/ui/formdlg/formula.cxx8
1 files changed, 1 insertions, 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)
+ }
}