summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/arealink.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
commit2fbd64cef870568da1479a03f6ea778bab68a09b (patch)
tree244cd640702a2af5525b85f674f33fbb26d8f6db /sc/source/ui/docshell/arealink.cxx
parente4cb67b4dabe40fdf8ce703d6739db7863c52fb4 (diff)
More cppcheck cleaning in sc
Change-Id: Ie040fa7ed9a3304bd4a10e404b7a0a4e45cbd69c
Diffstat (limited to 'sc/source/ui/docshell/arealink.cxx')
-rw-r--r--sc/source/ui/docshell/arealink.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index 84d30be0eb9d..85db1838eb43 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -331,7 +331,6 @@ sal_Bool ScAreaLink::Refresh( const String& rNewFile, const String& rNewFilter,
// Undo initialisieren
ScDocument* pUndoDoc = NULL;
- ScDocument* pRedoDoc = NULL;
if ( bAddUndo && bUndo )
{
pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
@@ -414,7 +413,7 @@ sal_Bool ScAreaLink::Refresh( const String& rNewFile, const String& rNewFilter,
if ( bAddUndo && bUndo)
{
- pRedoDoc = new ScDocument( SCDOCMODE_UNDO );
+ ScDocument* pRedoDoc = new ScDocument( SCDOCMODE_UNDO );
pRedoDoc->InitUndo( pDoc, nDestTab, nDestTab );
pDoc->CopyToDocument( aNewRange, IDF_ALL & ~IDF_NOTE, false, pRedoDoc );