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
d7515f60
Kaydet (Commit)
d7515f60
authored
Eyl 15, 2012
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify AutoOGuardArray + rename private attribute
Change-Id: I9d651303fb80ef5c81d608e56a87cb9548c13f8f
üst
64787ead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
MasterPropertySet.cxx
comphelper/source/property/MasterPropertySet.cxx
+4
-7
No files found.
comphelper/source/property/MasterPropertySet.cxx
Dosyayı görüntüle @
d7515f60
...
...
@@ -30,26 +30,23 @@
class
AutoOGuardArray
{
sal_Int32
nSize
;
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
*
pGuardArray
;
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
*
mpGuardArray
;
public
:
AutoOGuardArray
(
sal_Int32
nNumElements
);
~
AutoOGuardArray
();
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
&
operator
[]
(
sal_Int32
i
)
{
return
pGuardArray
[
i
];
}
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
&
operator
[]
(
sal_Int32
i
)
{
return
m
pGuardArray
[
i
];
}
};
AutoOGuardArray
::
AutoOGuardArray
(
sal_Int32
nNumElements
)
AutoOGuardArray
::
AutoOGuardArray
(
sal_Int32
nNumElements
)
:
mpGuardArray
(
new
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
[
nNumElements
])
{
nSize
=
nNumElements
;
pGuardArray
=
new
boost
::
scoped_ptr
<
osl
::
SolarGuard
>
[
nSize
];
}
AutoOGuardArray
::~
AutoOGuardArray
()
{
//!! release auto_ptr's and thus the mutexes locks
delete
[]
pGuardArray
;
delete
[]
m
pGuardArray
;
}
...
...
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