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
a9a04f11
Kaydet (Commit)
a9a04f11
authored
Şub 23, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert ComponentMethodGuard::MethodType to scoped enum
Change-Id: I1f1b4981c70c2b8ff8087a85f0af28b816b4654a
üst
cd1bbdf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
enumerablemap.cxx
comphelper/source/container/enumerablemap.cxx
+1
-1
componentbase.hxx
include/comphelper/componentbase.hxx
+3
-3
No files found.
comphelper/source/container/enumerablemap.cxx
Dosyayı görüntüle @
a9a04f11
...
@@ -321,7 +321,7 @@ namespace comphelper
...
@@ -321,7 +321,7 @@ namespace comphelper
void
SAL_CALL
EnumerableMap
::
initialize
(
const
Sequence
<
Any
>&
_arguments
)
throw
(
Exception
,
RuntimeException
,
std
::
exception
)
void
SAL_CALL
EnumerableMap
::
initialize
(
const
Sequence
<
Any
>&
_arguments
)
throw
(
Exception
,
RuntimeException
,
std
::
exception
)
{
{
ComponentMethodGuard
aGuard
(
*
this
,
ComponentMethodGuard
::
WithoutInit
);
ComponentMethodGuard
aGuard
(
*
this
,
ComponentMethodGuard
::
MethodType
::
WithoutInit
);
if
(
impl_isInitialized_nothrow
()
)
if
(
impl_isInitialized_nothrow
()
)
throw
AlreadyInitializedException
();
throw
AlreadyInitializedException
();
...
...
include/comphelper/componentbase.hxx
Dosyayı görüntüle @
a9a04f11
...
@@ -110,7 +110,7 @@ namespace comphelper
...
@@ -110,7 +110,7 @@ namespace comphelper
class
ComponentMethodGuard
class
ComponentMethodGuard
{
{
public
:
public
:
enum
MethodType
enum
class
MethodType
{
{
/// allow the method to be called only when being initialized and not being disposed
/// allow the method to be called only when being initialized and not being disposed
Default
,
Default
,
...
@@ -119,10 +119,10 @@ namespace comphelper
...
@@ -119,10 +119,10 @@ namespace comphelper
};
};
ComponentMethodGuard
(
ComponentBase
&
_rComponent
,
const
MethodType
_eType
=
Default
)
ComponentMethodGuard
(
ComponentBase
&
_rComponent
,
const
MethodType
_eType
=
MethodType
::
Default
)
:
m_aMutexGuard
(
_rComponent
.
getMutex
(
ComponentBase
::
GuardAccess
()
)
)
:
m_aMutexGuard
(
_rComponent
.
getMutex
(
ComponentBase
::
GuardAccess
()
)
)
{
{
if
(
_eType
!=
WithoutInit
)
if
(
_eType
!=
MethodType
::
WithoutInit
)
_rComponent
.
checkInitialized
(
ComponentBase
::
GuardAccess
()
);
_rComponent
.
checkInitialized
(
ComponentBase
::
GuardAccess
()
);
_rComponent
.
checkDisposed
(
ComponentBase
::
GuardAccess
()
);
_rComponent
.
checkDisposed
(
ComponentBase
::
GuardAccess
()
);
}
}
...
...
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