diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-16 23:55:45 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-17 00:04:10 +0900 |
commit | 13021dae515db60405a255aab388318e54df99a6 (patch) | |
tree | 21d26c15545cc20fb8a6f046fcbf784a5941d28b /sc | |
parent | dca2588b6430e084eb708cfe69d36c3d46a5411e (diff) |
cppcheck: reduced scope of variable
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 2b934eed59c4..34a34b9c26af 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -693,10 +693,10 @@ void ScViewFunc::EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& r { ScDocument* pDoc = GetViewData()->GetDocument(); ScDocShell* pDocSh = GetViewData()->GetDocShell(); - sal_Bool bUndo (pDoc->IsUndoEnabled()); if ( pDoc && pDocSh ) { + sal_Bool bUndo(pDoc->IsUndoEnabled()); ScDocShellModificator aModificator( *pDocSh ); ScEditableTester aTester( pDoc, nTab, nCol,nRow, nCol,nRow ); |