Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7e8f24c5
Kaydet (Commit)
7e8f24c5
authored
Ock 27, 2016
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use unique_ptr to manage memory
Change-Id: I2f22dfc6c9ddbaf07145ca553fdb53c12cd94dcb
üst
4bc37b7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
viewprn.cxx
sfx2/source/view/viewprn.cxx
+4
-3
No files found.
sfx2/source/view/viewprn.cxx
Dosyayı görüntüle @
7e8f24c5
...
...
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <memory>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/view/XRenderable.hpp>
...
...
@@ -817,12 +819,12 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
// execute PrinterSetupDialog
VclPtrInstance
<
PrinterSetupDialog
>
pPrintSetupDlg
(
GetWindow
()
);
SfxDialogExecutor_Impl
*
pExecutor
=
nullpt
r
;
std
::
unique_ptr
<
SfxDialogExecutor_Impl
>
pExecuto
r
;
if
(
pImp
->
m_bHasPrintOptions
&&
HasPrintOptionsPage
())
{
// additional controls for dialog
pExecutor
=
new
SfxDialogExecutor_Impl
(
this
,
pPrintSetupDlg
);
pExecutor
.
reset
(
new
SfxDialogExecutor_Impl
(
this
,
pPrintSetupDlg
)
);
if
(
bPrintOnHelp
)
pExecutor
->
DisableHelp
();
pPrintSetupDlg
->
SetOptionsHdl
(
pExecutor
->
GetLink
()
);
...
...
@@ -844,7 +846,6 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
}
pPrintSetupDlg
.
disposeAndClear
();
delete
pExecutor
;
// no recording of PrinterSetup except printer name (is printer dependent)
rReq
.
Ignore
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment