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
0361eb7c
Kaydet (Commit)
0361eb7c
authored
Tem 21, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unused return type from SfxItemPool::AddRef
Change-Id: Ideb690df8a74efe55bff832e16e66a6b77b1530a
üst
b0a13b78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
itempool.hxx
include/svl/itempool.hxx
+3
-3
poolitem.hxx
include/svl/poolitem.hxx
+3
-3
No files found.
include/svl/itempool.hxx
Dosyayı görüntüle @
0361eb7c
...
...
@@ -87,7 +87,7 @@ public:
protected
:
static
inline
void
SetRefCount
(
SfxPoolItem
&
rItem
,
sal_uLong
n
);
static
inline
sal_uLong
AddRef
(
const
SfxPoolItem
&
rItem
,
sal_uLong
n
=
1
);
static
inline
void
AddRef
(
const
SfxPoolItem
&
rItem
,
sal_uLong
n
=
1
);
static
inline
sal_uLong
ReleaseRef
(
const
SfxPoolItem
&
rItem
,
sal_uLong
n
=
1
);
static
inline
void
SetKind
(
SfxPoolItem
&
rItem
,
sal_uInt16
nRef
);
...
...
@@ -228,9 +228,9 @@ inline void SfxItemPool::SetRefCount( SfxPoolItem& rItem, sal_uLong n )
}
// only the pool may manipulate the reference counts
inline
sal_uLong
SfxItemPool
::
AddRef
(
const
SfxPoolItem
&
rItem
,
sal_uLong
n
)
inline
void
SfxItemPool
::
AddRef
(
const
SfxPoolItem
&
rItem
,
sal_uLong
n
)
{
r
eturn
r
Item
.
AddRef
(
n
);
rItem
.
AddRef
(
n
);
}
// only the pool may manipulate the reference counts
...
...
include/svl/poolitem.hxx
Dosyayı görüntüle @
0361eb7c
...
...
@@ -170,7 +170,7 @@ private:
inline
void
SetRefCount
(
sal_uLong
n
);
inline
void
SetKind
(
sal_uInt16
n
);
public
:
inline
sal_uLong
AddRef
(
sal_uLong
n
=
1
)
const
;
inline
void
AddRef
(
sal_uLong
n
=
1
)
const
;
private
:
inline
sal_uLong
ReleaseRef
(
sal_uLong
n
=
1
)
const
;
...
...
@@ -270,11 +270,11 @@ inline void SfxPoolItem::SetKind( sal_uInt16 n )
m_nKind
=
n
;
}
inline
sal_uLong
SfxPoolItem
::
AddRef
(
sal_uLong
n
)
const
inline
void
SfxPoolItem
::
AddRef
(
sal_uLong
n
)
const
{
DBG_ASSERT
(
m_nRefCount
<=
SFX_ITEMS_MAXREF
,
"AddRef with non-Pool-Item"
);
DBG_ASSERT
(
ULONG_MAX
-
m_nRefCount
>
n
,
"AddRef: refcount overflow"
);
return
(
const_cast
<
SfxPoolItem
*>
(
this
)
->
m_nRefCount
+=
n
)
;
const_cast
<
SfxPoolItem
*>
(
this
)
->
m_nRefCount
+=
n
;
}
inline
sal_uLong
SfxPoolItem
::
ReleaseRef
(
sal_uLong
n
)
const
...
...
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