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
0e8cb202
Kaydet (Commit)
0e8cb202
authored
Mar 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: Ic03728b2824eb59b9b6351a88ec355bfb93154cb
üst
c9c991a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
file.cxx
sal/osl/unx/file.cxx
+1
-1
math.cxx
sal/rtl/math.cxx
+1
-1
No files found.
sal/osl/unx/file.cxx
Dosyayı görüntüle @
0e8cb202
...
@@ -1140,7 +1140,7 @@ SAL_CALL osl_mapFile (
...
@@ -1140,7 +1140,7 @@ SAL_CALL osl_mapFile (
* Pagein, touching first byte of every memory page.
* Pagein, touching first byte of every memory page.
* Note: volatile disables optimizing the loop away.
* Note: volatile disables optimizing the loop away.
*/
*/
sal_uInt8
*
pData
(
reinterpret
_cast
<
sal_uInt8
*>
(
*
ppAddr
));
sal_uInt8
*
pData
(
static
_cast
<
sal_uInt8
*>
(
*
ppAddr
));
size_t
nSize
(
nLength
);
size_t
nSize
(
nLength
);
volatile
sal_uInt8
c
=
0
;
volatile
sal_uInt8
c
=
0
;
...
...
sal/rtl/math.cxx
Dosyayı görüntüle @
0e8cb202
...
@@ -419,7 +419,7 @@ inline void doubleToString(StringT ** pResult,
...
@@ -419,7 +419,7 @@ inline void doubleToString(StringT ** pResult,
:
nDigits
+
nDecPlaces
)
+
10
+
(
pGroups
?
abs
(
nDigits
)
*
2
:
0
);
:
nDigits
+
nDecPlaces
)
+
10
+
(
pGroups
?
abs
(
nDigits
)
*
2
:
0
);
if
(
nBuf
>
nBufMax
)
if
(
nBuf
>
nBufMax
)
{
{
pBuf
=
reinterpret
_cast
<
typename
T
::
Char
*
>
(
pBuf
=
static
_cast
<
typename
T
::
Char
*
>
(
rtl_allocateMemory
(
nBuf
*
sizeof
(
typename
T
::
Char
)));
rtl_allocateMemory
(
nBuf
*
sizeof
(
typename
T
::
Char
)));
OSL_ENSURE
(
pBuf
!=
0
,
"Out of memory"
);
OSL_ENSURE
(
pBuf
!=
0
,
"Out of memory"
);
}
}
...
...
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