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
b921e409
Kaydet (Commit)
b921e409
authored
May 17, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use non-leaky singleton pattern
üst
215d0764
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
25 deletions
+2
-25
appinit.cxx
sfx2/source/appl/appinit.cxx
+0
-3
sfxpicklist.cxx
sfx2/source/appl/sfxpicklist.cxx
+2
-20
sfxpicklist.hxx
sfx2/source/inc/sfxpicklist.hxx
+0
-2
No files found.
sfx2/source/appl/appinit.cxx
Dosyayı görüntüle @
b921e409
...
@@ -264,9 +264,6 @@ bool SfxApplication::Initialize_Impl()
...
@@ -264,9 +264,6 @@ bool SfxApplication::Initialize_Impl()
pAppData_Impl
->
m_pSbxErrorHdl
=
new
SfxErrorHandler
(
pAppData_Impl
->
m_pSbxErrorHdl
=
new
SfxErrorHandler
(
RID_BASIC_START
,
ERRCODE_AREA_SBX
,
ERRCODE_AREA_SBX_END
);
RID_BASIC_START
,
ERRCODE_AREA_SBX
,
ERRCODE_AREA_SBX_END
);
// diverse Pointer
SfxPickList
::
GetOrCreate
(
SvtHistoryOptions
().
GetSize
(
ePICKLIST
)
);
DBG_ASSERT
(
!
pAppData_Impl
->
pAppDispat
,
"AppDispatcher already exists"
);
DBG_ASSERT
(
!
pAppData_Impl
->
pAppDispat
,
"AppDispatcher already exists"
);
pAppData_Impl
->
pAppDispat
=
new
SfxDispatcher
((
SfxDispatcher
*
)
0
);
pAppData_Impl
->
pAppDispat
=
new
SfxDispatcher
((
SfxDispatcher
*
)
0
);
pAppData_Impl
->
pSlotPool
=
new
SfxSlotPool
;
pAppData_Impl
->
pSlotPool
=
new
SfxSlotPool
;
...
...
sfx2/source/appl/sfxpicklist.cxx
Dosyayı görüntüle @
b921e409
...
@@ -170,28 +170,10 @@ SfxPickList::PickListEntry* SfxPickList::GetPickListEntry( sal_uInt32 nIndex )
...
@@ -170,28 +170,10 @@ SfxPickList::PickListEntry* SfxPickList::GetPickListEntry( sal_uInt32 nIndex )
return
0
;
return
0
;
}
}
SfxPickList
&
SfxPickList
::
GetOrCreate
(
const
sal_uInt32
nMenuSize
)
{
if
(
!
pUniqueInstance
)
{
::
osl
::
MutexGuard
aGuard
(
thePickListMutex
::
get
()
);
if
(
!
pUniqueInstance
)
pUniqueInstance
=
new
SfxPickList
(
nMenuSize
);
}
return
*
pUniqueInstance
;
}
SfxPickList
&
SfxPickList
::
Get
()
SfxPickList
&
SfxPickList
::
Get
()
{
{
::
osl
::
MutexGuard
aGuard
(
thePickListMutex
::
get
()
);
static
SfxPickList
aUniqueInstance
(
SvtHistoryOptions
().
GetSize
(
ePICKLIST
));
return
*
pUniqueInstance
;
return
aUniqueInstance
;
}
void
SfxPickList
::
Delete
()
{
::
osl
::
MutexGuard
aGuard
(
thePickListMutex
::
get
()
);
DELETEZ
(
pUniqueInstance
);
}
}
SfxPickList
::
SfxPickList
(
sal_uInt32
nAllowedMenuSize
)
:
SfxPickList
::
SfxPickList
(
sal_uInt32
nAllowedMenuSize
)
:
...
...
sfx2/source/inc/sfxpicklist.hxx
Dosyayı görüntüle @
b921e409
...
@@ -67,9 +67,7 @@ class SfxPickList : public SfxListener
...
@@ -67,9 +67,7 @@ class SfxPickList : public SfxListener
void
RemovePickListEntries
();
void
RemovePickListEntries
();
public
:
public
:
static
SfxPickList
&
GetOrCreate
(
const
sal_uInt32
nMenuSize
);
static
SfxPickList
&
Get
();
static
SfxPickList
&
Get
();
static
void
Delete
();
sal_uInt32
GetAllowedMenuSize
()
{
return
m_nAllowedMenuSize
;
}
sal_uInt32
GetAllowedMenuSize
()
{
return
m_nAllowedMenuSize
;
}
sal_uInt32
GetNumOfEntries
()
const
{
return
m_aPicklistVector
.
size
();
}
sal_uInt32
GetNumOfEntries
()
const
{
return
m_aPicklistVector
.
size
();
}
...
...
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