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
2f7a386a
Kaydet (Commit)
2f7a386a
authored
Ara 05, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I73850d2b2ea6ff4376e25e0be39c65c35328a9a6
üst
d06a37b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mempool.cxx
tools/source/memtools/mempool.cxx
+4
-4
No files found.
tools/source/memtools/mempool.cxx
Dosyayı görüntüle @
2f7a386a
...
...
@@ -28,24 +28,24 @@ FixedMemPool::FixedMemPool(char const * pTypeName, sal_uInt16 nTypeSize)
{
char
name
[
RTL_CACHE_NAME_LENGTH
+
1
];
snprintf
(
name
,
sizeof
(
name
),
"FixedMemPool_%d"
,
(
int
)
nTypeSize
);
m_pImpl
=
(
FixedMemPool_Impl
*
)
rtl_cache_create
(
name
,
nTypeSize
,
0
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
);
m_pImpl
=
reinterpret_cast
<
FixedMemPool_Impl
*>
(
rtl_cache_create
(
name
,
nTypeSize
,
0
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
)
);
SAL_INFO
(
"tools.memtools"
,
"FixedMemPool::ctor(
\"
"
<<
m_pTypeName
<<
"
\"
): "
<<
m_pImpl
);
}
FixedMemPool
::~
FixedMemPool
()
{
SAL_INFO
(
"tools.memtools"
,
"FixedMemPool::dtor(
\"
"
<<
m_pTypeName
<<
"
\"
): "
<<
m_pImpl
);
rtl_cache_destroy
(
(
rtl_cache_type
*
)
(
m_pImpl
)),
m_pImpl
=
0
;
rtl_cache_destroy
(
reinterpret_cast
<
rtl_cache_type
*>
(
m_pImpl
)),
m_pImpl
=
0
;
}
void
*
FixedMemPool
::
Alloc
()
{
return
rtl_cache_alloc
(
(
rtl_cache_type
*
)
(
m_pImpl
));
return
rtl_cache_alloc
(
reinterpret_cast
<
rtl_cache_type
*>
(
m_pImpl
));
}
void
FixedMemPool
::
Free
(
void
*
pFree
)
{
rtl_cache_free
(
(
rtl_cache_type
*
)
(
m_pImpl
),
pFree
);
rtl_cache_free
(
reinterpret_cast
<
rtl_cache_type
*>
(
m_pImpl
),
pFree
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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