summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
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
commit5030d61411fba2b48e24cfeed1015851122ccdae (patch)
tree79f7c9a87f62e0d5e36bff025cfc9ff61616323d /sc/source/ui/formdlg
parent3d4891dd21276ccf72e6cde23ac2602919666cef (diff)
cppcheck: removed a local var that is never used, plus some cleanups.
Diffstat (limited to 'sc/source/ui/formdlg')
-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 0510d503762b..61ecbe066ca4 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)
+ }
}