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
80b3c852
Kaydet (Commit)
80b3c852
authored
May 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify code using ScopedVclPtr
Change-Id: I71db7422ab8ad83455cc61df5314cf214a4d388c
üst
0a825b9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
dlgfact.cxx
cui/source/factory/dlgfact.cxx
+1
-11
dlgfact.hxx
cui/source/factory/dlgfact.hxx
+1
-6
No files found.
cui/source/factory/dlgfact.cxx
Dosyayı görüntüle @
80b3c852
...
...
@@ -104,17 +104,7 @@ IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
IMPL_ABSTDLG_BASE
(
AbstractFmShowColsDialog_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractHyphenWordDialog_Impl
)
IMPL_ABSTDLG_BASE
(
AbstractThesaurusDialog_Impl
)
AbstractSvxZoomDialog_Impl
::~
AbstractSvxZoomDialog_Impl
()
{
pDlg
.
disposeAndClear
();
}
short
AbstractSvxZoomDialog_Impl
::
Execute
()
{
return
pDlg
->
Execute
();
}
IMPL_ABSTDLG_BASE
(
AbstractSvxZoomDialog_Impl
)
IMPL_ABSTDLG_BASE
(
AbstractSearchProgress_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractTakeProgress_Impl
);
IMPL_ABSTDLG_BASE
(
AbstractTitleDialog_Impl
);
...
...
cui/source/factory/dlgfact.hxx
Dosyayı görüntüle @
80b3c852
...
...
@@ -62,19 +62,14 @@ class HangulHanjaConversionDialog;
using
namespace
svx
;
#define DECL_ABSTDLG_BASE(Class,DialogClass) \
VclPtr<DialogClass> pDlg;
\
ScopedVclPtr<DialogClass> pDlg;
\
public: \
Class( DialogClass* p) \
: pDlg(p) \
{} \
virtual ~Class(); \
virtual short Execute() SAL_OVERRIDE ;
#define IMPL_ABSTDLG_BASE(Class) \
Class::~Class() \
{ \
pDlg.disposeAndClear(); \
} \
short Class::Execute() \
{ \
return pDlg->Execute(); \
...
...
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