summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-07 12:48:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-07 17:13:50 +0100
commitc92bf024ed93b28d6bf8d38f6ec5ab0bdf6cd4f3 (patch)
treefb1cd9b04457d20c4f37b90baedac4c8c25d17aa /sw
parent69d673e80c49392cee77c04df3acc7f26eb72ba7 (diff)
Resolves: #i117748# pOutDevDoc unused
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/vprint.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index ac62ba424ead..f02cf96d23df 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -456,17 +456,13 @@ sal_Bool ViewShell::PrintOrPDFExport(
// output device is now provided by a call from outside the Writer)
pOutDev->Push();
- ViewShell *pShell;
- SwDoc *pOutDevDoc;
-
// Print/PDF export for (multi-)selection has already generated a
// temporary document with the selected text.
// (see XRenderable implementation in unotxdoc.cxx)
// It is implemented this way because PDF export calls this Prt function
// once per page and we do not like to always have the temporary document
// to be created that often here.
- pOutDevDoc = GetDoc();
- pShell = new ViewShell( *this, 0, pOutDev );
+ ViewShell *pShell = new ViewShell( *this, 0, pOutDev );
SdrView *pDrawView = pShell->GetDrawView();
if (pDrawView)