diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-22 23:33:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-22 23:33:23 +0100 |
commit | 14aeace3a192219b2aba1586c09806a482d89ee0 (patch) | |
tree | 4c19eb375a49e70d4991d9c20a0aef139e1a54f2 | |
parent | 8dd60a43d814667c34c48d969eb020d262bc4e39 (diff) |
Pass SfxPrinter by VclPtr
Change-Id: Id5a8949e6995be70f3d831e98449f5d10bcb040f
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/documen8.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 3d5d8f77457a..25e3c4b4bdba 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1901,7 +1901,7 @@ public: SCTAB nTab ); SfxPrinter* GetPrinter( bool bCreateIfNotExist = true ); - void SetPrinter( SfxPrinter* pNewPrinter ); + void SetPrinter( VclPtr<SfxPrinter> const & pNewPrinter ); VirtualDevice* GetVirtualDevice_100th_mm(); SC_DLLPUBLIC OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice... diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 55ca6a5a867f..b5ce6d458256 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -145,7 +145,7 @@ SfxPrinter* ScDocument::GetPrinter(bool bCreateIfNotExist) return pPrinter; } -void ScDocument::SetPrinter( SfxPrinter* pNewPrinter ) +void ScDocument::SetPrinter( VclPtr<SfxPrinter> const & pNewPrinter ) { if ( pNewPrinter == pPrinter.get() ) { diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index d8d208dbe9c0..c50435b2935b 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -466,7 +466,7 @@ OutputDevice* ScDocShell::GetRefDevice() return aDocument.GetRefDevice(); } -sal_uInt16 ScDocShell::SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags ) +sal_uInt16 ScDocShell::SetPrinter( VclPtr<SfxPrinter> const & pNewPrinter, SfxPrinterChangeFlags nDiffFlags ) { SfxPrinter *pOld = aDocument.GetPrinter( false ); if ( pOld && pOld->IsPrinting() ) diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 0abc2890f02a..e2a75c3de6c1 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -229,7 +229,7 @@ public: #endif SfxPrinter* GetPrinter( bool bCreateIfNotExist = true ); - sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ); + sal_uInt16 SetPrinter( VclPtr<SfxPrinter> const & pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ); void UpdateFontList(); |