diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-30 21:19:04 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-30 21:19:04 +0100 |
commit | 2fbd64cef870568da1479a03f6ea778bab68a09b (patch) | |
tree | 244cd640702a2af5525b85f674f33fbb26d8f6db /sc/source/ui/view/dbfunc.cxx | |
parent | e4cb67b4dabe40fdf8ce703d6739db7863c52fb4 (diff) |
More cppcheck cleaning in sc
Change-Id: Ie040fa7ed9a3304bd4a10e404b7a0a4e45cbd69c
Diffstat (limited to 'sc/source/ui/view/dbfunc.cxx')
-rw-r--r-- | sc/source/ui/view/dbfunc.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx index 2559c2bcfcec..3a4bd17ca0b5 100644 --- a/sc/source/ui/view/dbfunc.cxx +++ b/sc/source/ui/view/dbfunc.cxx @@ -205,7 +205,6 @@ void ScDBFunc::NotifyCloseDbNameDlg( const ScDBCollection& rNewColl, const std:: ScDocument* pDoc = pDocShell->GetDocument(); ScDBCollection* pOldColl = pDoc->GetDBCollection(); ScDBCollection* pUndoColl = NULL; - ScDBCollection* pRedoColl = NULL; const sal_Bool bRecord (pDoc->IsUndoEnabled()); std::vector<ScRange>::const_iterator iter; @@ -235,7 +234,7 @@ void ScDBFunc::NotifyCloseDbNameDlg( const ScDBCollection& rNewColl, const std:: if (bRecord) { - pRedoColl = new ScDBCollection( rNewColl ); + ScDBCollection* pRedoColl = new ScDBCollection( rNewColl ); pDocShell->GetUndoManager()->AddUndoAction( new ScUndoDBData( pDocShell, pUndoColl, pRedoColl ) ); } |