[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Nov 24 20:28:30 PST 2010


 sc/source/ui/formdlg/formula.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit fc5fd63fe5db73ee6cb25a3f18039e8503494be3
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Nov 24 23:28:02 2010 -0500

    cppcheck: removed a local var that is never used, plus some cleanups.

diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index ed9a268..a2dbe6e 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)
+    }
 
 }
 


More information about the Libreoffice-commits mailing list