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
f462f7b8
Kaydet (Commit)
f462f7b8
authored
Mar 28, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up C-style casts from pointers to void
Change-Id: I59b111341fc8153088882ac24322f714dc69417a
üst
33815ec4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
breakiterator_ctl.cxx
i18npool/source/breakiterator/breakiterator_ctl.cxx
+2
-2
breakiterator_th.cxx
i18npool/source/breakiterator/breakiterator_th.cxx
+2
-2
indexentrysupplier_default.cxx
i18npool/source/indexentry/indexentrysupplier_default.cxx
+1
-1
genconv_dict.cxx
i18npool/source/textconversion/genconv_dict.cxx
+1
-1
No files found.
i18npool/source/breakiterator/breakiterator_ctl.cxx
Dosyayı görüntüle @
f462f7b8
...
@@ -37,8 +37,8 @@ BreakIterator_CTL::BreakIterator_CTL() :
...
@@ -37,8 +37,8 @@ BreakIterator_CTL::BreakIterator_CTL() :
{
{
cBreakIterator
=
"com.sun.star.i18n.BreakIterator_CTL"
;
cBreakIterator
=
"com.sun.star.i18n.BreakIterator_CTL"
;
// to improve performance, alloc big enough memory in construct.
// to improve performance, alloc big enough memory in construct.
nextCellIndex
=
(
sal_Int32
*
)
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
));
nextCellIndex
=
static_cast
<
sal_Int32
*>
(
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
)
));
previousCellIndex
=
(
sal_Int32
*
)
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
));
previousCellIndex
=
static_cast
<
sal_Int32
*>
(
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
)
));
}
}
/**
/**
...
...
i18npool/source/breakiterator/breakiterator_th.cxx
Dosyayı görüntüle @
f462f7b8
...
@@ -112,8 +112,8 @@ void SAL_CALL BreakIterator_th::makeIndex(const OUString& Text, sal_Int32 nStart
...
@@ -112,8 +112,8 @@ void SAL_CALL BreakIterator_th::makeIndex(const OUString& Text, sal_Int32 nStart
cellIndexSize
=
cachedText
.
getLength
();
cellIndexSize
=
cachedText
.
getLength
();
free
(
nextCellIndex
);
free
(
nextCellIndex
);
free
(
previousCellIndex
);
free
(
previousCellIndex
);
nextCellIndex
=
(
sal_Int32
*
)
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
));
nextCellIndex
=
static_cast
<
sal_Int32
*>
(
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
)
));
previousCellIndex
=
(
sal_Int32
*
)
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
));
previousCellIndex
=
static_cast
<
sal_Int32
*>
(
calloc
(
cellIndexSize
,
sizeof
(
sal_Int32
)
));
}
}
// reset nextCell for new Text
// reset nextCell for new Text
memset
(
nextCellIndex
,
0
,
cellIndexSize
*
sizeof
(
sal_Int32
));
memset
(
nextCellIndex
,
0
,
cellIndexSize
*
sizeof
(
sal_Int32
));
...
...
i18npool/source/indexentry/indexentrysupplier_default.cxx
Dosyayı görüntüle @
f462f7b8
...
@@ -93,7 +93,7 @@ void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey *keys, sal_
...
@@ -93,7 +93,7 @@ void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey *keys, sal_
{
{
start
=
start_
;
start
=
start_
;
end
=
end_
;
end
=
end_
;
table
=
(
sal_uInt8
*
)
malloc
((
end
-
start
+
1
)
*
sizeof
(
sal_uInt8
));
table
=
static_cast
<
sal_uInt8
*>
(
malloc
((
end
-
start
+
1
)
*
sizeof
(
sal_uInt8
)
));
for
(
sal_Unicode
i
=
start
;
i
<=
end
;
i
++
)
{
for
(
sal_Unicode
i
=
start
;
i
<=
end
;
i
++
)
{
sal_Int16
j
;
sal_Int16
j
;
for
(
j
=
0
;
j
<
key_count
;
j
++
)
{
for
(
j
=
0
;
j
<
key_count
;
j
++
)
{
...
...
i18npool/source/textconversion/genconv_dict.cxx
Dosyayı görüntüle @
f462f7b8
...
@@ -332,7 +332,7 @@ typedef struct {
...
@@ -332,7 +332,7 @@ typedef struct {
extern
"C"
{
extern
"C"
{
int
Index_comp
(
const
void
*
s1
,
const
void
*
s2
)
int
Index_comp
(
const
void
*
s1
,
const
void
*
s2
)
{
{
Index
*
p1
=
(
Index
*
)
s1
,
*
p2
=
(
Index
*
)
s2
;
Index
const
*
p1
=
static_cast
<
Index
const
*>
(
s1
),
*
p2
=
static_cast
<
Index
const
*>
(
s2
)
;
int
result
=
p1
->
len
-
p2
->
len
;
int
result
=
p1
->
len
-
p2
->
len
;
for
(
int
i
=
0
;
result
==
0
&&
i
<
p1
->
len
;
i
++
)
for
(
int
i
=
0
;
result
==
0
&&
i
<
p1
->
len
;
i
++
)
result
=
*
(
p1
->
data
+
i
)
-
*
(
p2
->
data
+
i
);
result
=
*
(
p1
->
data
+
i
)
-
*
(
p2
->
data
+
i
);
...
...
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