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
c3f4909b
Kaydet (Commit)
c3f4909b
authored
Mar 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I7b184414d822e7d3f4f7694dcea540d731f970d9
üst
b98a8221
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
collatorImpl.cxx
i18npool/source/collator/collatorImpl.cxx
+2
-2
inputsequencechecker.cxx
i18npool/source/inputchecker/inputsequencechecker.cxx
+2
-2
transliteration_caseignore.cxx
...ool/source/transliteration/transliteration_caseignore.cxx
+2
-2
No files found.
i18npool/source/collator/collatorImpl.cxx
Dosyayı görüntüle @
c3f4909b
...
...
@@ -52,8 +52,8 @@ CollatorImpl::compareSubstring( const OUString& str1, sal_Int32 off1, sal_Int32
if
(
cachedItem
)
return
cachedItem
->
xC
->
compareSubstring
(
str1
,
off1
,
len1
,
str2
,
off2
,
len2
);
sal_Unicode
*
unistr1
=
(
sal_Unicode
*
)
str1
.
getStr
(
)
+
off1
;
sal_Unicode
*
unistr2
=
(
sal_Unicode
*
)
str2
.
getStr
(
)
+
off2
;
sal_Unicode
*
unistr1
=
const_cast
<
sal_Unicode
*>
(
str1
.
getStr
()
)
+
off1
;
sal_Unicode
*
unistr2
=
const_cast
<
sal_Unicode
*>
(
str2
.
getStr
()
)
+
off2
;
for
(
int
i
=
0
;
i
<
len1
&&
i
<
len2
;
i
++
)
if
(
unistr1
[
i
]
!=
unistr2
[
i
])
return
unistr1
[
i
]
<
unistr2
[
i
]
?
-
1
:
1
;
...
...
i18npool/source/inputchecker/inputsequencechecker.cxx
Dosyayı görüntüle @
c3f4909b
...
...
@@ -95,10 +95,10 @@ InputSequenceCheckerImpl::getLanguageByScripType(sal_Unicode cChar, sal_Unicode
if
(
type
!=
UnicodeScript_kScriptCount
&&
type
==
unicode
::
getUnicodeScriptType
(
nChar
,
typeList
,
UnicodeScript_kScriptCount
))
{
switch
(
type
)
{
case
UnicodeScript_kThai
:
return
(
sal_Char
*
)
"th"
;
case
UnicodeScript_kThai
:
return
const_cast
<
sal_Char
*>
(
"th"
)
;
//case UnicodeScript_kArabic: return (sal_Char*)"ar";
//case UnicodeScript_kHebrew: return (sal_Char*)"he";
case
UnicodeScript_kDevanagari
:
return
(
sal_Char
*
)
"hi"
;
case
UnicodeScript_kDevanagari
:
return
const_cast
<
sal_Char
*>
(
"hi"
)
;
}
}
return
NULL
;
...
...
i18npool/source/transliteration/transliteration_caseignore.cxx
Dosyayı görüntüle @
c3f4909b
...
...
@@ -121,8 +121,8 @@ Transliteration_caseignore::compare(
const
OUString
&
str2
,
sal_Int32
pos2
,
sal_Int32
nCount2
,
sal_Int32
&
nMatch2
)
throw
(
RuntimeException
)
{
const
sal_Unicode
*
unistr1
=
(
sal_Unicode
*
)
str1
.
getStr
(
)
+
pos1
;
const
sal_Unicode
*
unistr2
=
(
sal_Unicode
*
)
str2
.
getStr
(
)
+
pos2
;
const
sal_Unicode
*
unistr1
=
const_cast
<
sal_Unicode
*>
(
str1
.
getStr
()
)
+
pos1
;
const
sal_Unicode
*
unistr2
=
const_cast
<
sal_Unicode
*>
(
str2
.
getStr
()
)
+
pos2
;
sal_Unicode
c1
,
c2
;
MappingElement
e1
,
e2
;
nMatch1
=
nMatch2
=
0
;
...
...
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