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
0c6c66b6
Kaydet (Commit)
0c6c66b6
authored
Tem 11, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove IReference
now that it is unused Change-Id: I95d9f4cc50114dd9f9c9f5d095372766f44b3094
üst
96afb3cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
33 deletions
+7
-33
ref.hxx
include/rtl/ref.hxx
+1
-22
refobj.hxx
include/salhelper/refobj.hxx
+6
-11
No files found.
include/rtl/ref.hxx
Dosyayı görüntüle @
0c6c66b6
...
...
@@ -30,28 +30,7 @@
namespace
rtl
{
/** Interface for a reference type.
*/
class
IReference
{
public
:
/** @see osl_incrementInterlockedCount.
*/
virtual
oslInterlockedCount
SAL_CALL
acquire
()
=
0
;
/** @see osl_decrementInterlockedCount.
*/
virtual
oslInterlockedCount
SAL_CALL
release
()
=
0
;
#if !defined _MSC_VER // public -> protected changes mangled names there
protected
:
#endif
~
IReference
()
{}
// avoid warnings about virtual members and non-virtual dtor
};
/** Template reference class for reference type derived from IReference.
/** Template reference class for reference type.
*/
template
<
class
reference_type
>
class
Reference
...
...
include/salhelper/refobj.hxx
Dosyayı görüntüle @
0c6c66b6
...
...
@@ -31,7 +31,7 @@ namespace salhelper
class
ReferenceObject
:
public
rtl
::
IReference
class
ReferenceObject
{
/** Representation.
*/
...
...
@@ -63,27 +63,22 @@ public:
public
:
/** Construction.
*/
inline
ReferenceObject
()
:
m_nReferenceCount
(
0
)
inline
ReferenceObject
()
:
m_nReferenceCount
(
0
)
{}
/** IReference.
*/
virtual
oslInterlockedCount
SAL_CALL
acquire
()
SAL_OVERRIDE
void
SAL_CALL
acquire
()
{
return
osl_atomic_increment
(
&
m_nReferenceCount
);
osl_atomic_increment
(
&
m_nReferenceCount
);
}
v
irtual
oslInterlockedCount
SAL_CALL
release
()
SAL_OVERRIDE
v
oid
SAL_CALL
release
()
{
oslInterlockedCount
result
;
result
=
::
osl_atomic_decrement
(
&
m_nReferenceCount
);
if
(
result
==
0
)
if
(
osl_atomic_decrement
(
&
m_nReferenceCount
)
==
0
)
{
// Last reference released.
delete
this
;
}
return
(
result
);
}
protected
:
...
...
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