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
115e3dda
Kaydet (Commit)
115e3dda
authored
May 17, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
valgrind: use non-leaky singleton pattern
üst
a114d5ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
svxerr.hxx
svx/inc/svx/svxerr.hxx
+2
-2
svxerr.cxx
svx/source/items/svxerr.cxx
+9
-6
No files found.
svx/inc/svx/svxerr.hxx
Dosyayı görüntüle @
115e3dda
...
@@ -94,9 +94,9 @@
...
@@ -94,9 +94,9 @@
class
SVX_DLLPUBLIC
SvxErrorHandler
:
private
SfxErrorHandler
class
SVX_DLLPUBLIC
SvxErrorHandler
:
private
SfxErrorHandler
{
{
public
:
public
:
SvxErrorHandler
();
SvxErrorHandler
();
static
void
Get
();
static
void
ensure
();
};
};
#endif
#endif
...
...
svx/source/items/svxerr.cxx
Dosyayı görüntüle @
115e3dda
...
@@ -37,20 +37,23 @@
...
@@ -37,20 +37,23 @@
#include <svx/dialogs.hrc>
#include <svx/dialogs.hrc>
static
SvxErrorHandler
*
pHandler
=
NULL
;
#include <rtl/instance.hxx>
SvxErrorHandler
::
SvxErrorHandler
()
:
SvxErrorHandler
::
SvxErrorHandler
()
:
SfxErrorHandler
(
SfxErrorHandler
(
RID_SVXERRCODE
,
ERRCODE_AREA_SVX
,
ERRCODE_AREA_SVX_END
,
&
DIALOG_MGR
()
)
RID_SVXERRCODE
,
ERRCODE_AREA_SVX
,
ERRCODE_AREA_SVX_END
,
&
DIALOG_MGR
()
)
{
{
pHandler
=
this
;
}
}
void
SvxErrorHandler
::
Get
()
namespace
{
class
theSvxErrorHandler
:
public
rtl
::
Static
<
SvxErrorHandler
,
theSvxErrorHandler
>
{};
}
void
SvxErrorHandler
::
ensure
()
{
{
if
(
!
pHandler
)
theSvxErrorHandler
::
get
();
new
SvxErrorHandler
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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