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
8f5df0db
Kaydet (Commit)
8f5df0db
authored
Nis 03, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused copy ctor (and use boost::noncopyable)
Change-Id: Ib797c84e64a114df0e80067a97b714d4f97ff20a
üst
ea327726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
weak.cxx
cppuhelper/source/weak.cxx
+5
-26
No files found.
cppuhelper/source/weak.cxx
Dosyayı görüntüle @
8f5df0db
...
...
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <boost/noncopyable.hpp>
#include <osl/mutex.hxx>
#include <cppuhelper/weakagg.hxx>
#include <cppuhelper/interfacecontainer.hxx>
...
...
@@ -41,7 +44,7 @@ inline static Mutex & getWeakMutex() SAL_THROW(())
//-- OWeakConnectionPoint ----------------------------------------------------
class
OWeakConnectionPoint
:
public
XAdapter
class
OWeakConnectionPoint
:
public
XAdapter
,
private
boost
::
noncopyable
{
public
:
/**
...
...
@@ -67,9 +70,6 @@ public:
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
private
:
OWeakConnectionPoint
(
OWeakConnectionPoint
&
);
// not defined
void
operator
=
(
OWeakConnectionPoint
&
);
// not defined
virtual
~
OWeakConnectionPoint
()
{}
/// The reference counter.
...
...
@@ -316,10 +316,9 @@ namespace uno
//-- OWeakRefListener -----------------------------------------------------
class
OWeakRefListener
:
public
XReferenc
e
class
OWeakRefListener
:
public
XReference
,
private
boost
::
noncopyabl
e
{
public
:
OWeakRefListener
(
const
OWeakRefListener
&
rRef
)
SAL_THROW
(());
OWeakRefListener
(
const
Reference
<
XInterface
>&
xInt
)
SAL_THROW
(());
virtual
~
OWeakRefListener
()
SAL_THROW
(());
...
...
@@ -335,28 +334,8 @@ public:
oslInterlockedCount
m_aRefCount
;
/// The connection point of the weak object
Reference
<
XAdapter
>
m_XWeakConnectionPoint
;
private
:
OWeakRefListener
&
SAL_CALL
operator
=
(
const
OWeakRefListener
&
rRef
)
SAL_THROW
(());
};
OWeakRefListener
::
OWeakRefListener
(
const
OWeakRefListener
&
rRef
)
SAL_THROW
(())
:
com
::
sun
::
star
::
uno
::
XReference
()
,
m_aRefCount
(
1
)
{
try
{
m_XWeakConnectionPoint
=
rRef
.
m_XWeakConnectionPoint
;
if
(
m_XWeakConnectionPoint
.
is
())
{
m_XWeakConnectionPoint
->
addReference
((
XReference
*
)
this
);
}
}
catch
(
RuntimeException
&
)
{
OSL_ASSERT
(
false
);
}
// assert here, but no unexpected()
osl_atomic_decrement
(
&
m_aRefCount
);
}
OWeakRefListener
::
OWeakRefListener
(
const
Reference
<
XInterface
>&
xInt
)
SAL_THROW
(())
:
m_aRefCount
(
1
)
{
...
...
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