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
720f0e55
Kaydet (Commit)
720f0e55
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: I72a618a0deca795b87ec009105252f4594ecba90
üst
0c141f2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
intlwrapper.cxx
unotools/source/i18n/intlwrapper.cxx
+3
-3
localedatawrapper.cxx
unotools/source/i18n/localedatawrapper.cxx
+11
-11
transliterationwrapper.cxx
unotools/source/i18n/transliterationwrapper.cxx
+1
-1
No files found.
unotools/source/i18n/intlwrapper.cxx
Dosyayı görüntüle @
720f0e55
...
...
@@ -54,7 +54,7 @@ IntlWrapper::~IntlWrapper()
void
IntlWrapper
::
ImplNewLocaleData
()
const
{
((
IntlWrapper
*
)
this
)
->
pLocaleData
=
new
LocaleDataWrapper
(
m_xContext
,
maLanguageTag
);
const_cast
<
IntlWrapper
*>
(
this
)
->
pLocaleData
=
new
LocaleDataWrapper
(
m_xContext
,
maLanguageTag
);
}
void
IntlWrapper
::
ImplNewCollator
(
bool
bCaseSensitive
)
const
...
...
@@ -63,13 +63,13 @@ void IntlWrapper::ImplNewCollator( bool bCaseSensitive ) const
if
(
bCaseSensitive
)
{
p
->
loadDefaultCollator
(
maLanguageTag
.
getLocale
(),
0
);
((
IntlWrapper
*
)
this
)
->
pCaseCollator
=
p
;
const_cast
<
IntlWrapper
*>
(
this
)
->
pCaseCollator
=
p
;
}
else
{
p
->
loadDefaultCollator
(
maLanguageTag
.
getLocale
(),
::
com
::
sun
::
star
::
i18n
::
CollatorOptions
::
CollatorOptions_IGNORE_CASE
);
((
IntlWrapper
*
)
this
)
->
pCollator
=
p
;
const_cast
<
IntlWrapper
*>
(
this
)
->
pCollator
=
p
;
}
}
...
...
unotools/source/i18n/localedatawrapper.cxx
Dosyayı görüntüle @
720f0e55
...
...
@@ -338,7 +338,7 @@ const OUString& LocaleDataWrapper::getOneLocaleItem( sal_Int16 nItem ) const
if
(
aLocaleItem
[
nItem
].
isEmpty
())
{
// no cached content
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getOneLocaleItemImpl
(
nItem
);
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getOneLocaleItemImpl
(
nItem
);
}
return
aLocaleItem
[
nItem
];
}
...
...
@@ -431,7 +431,7 @@ const OUString& LocaleDataWrapper::getOneReservedWord( sal_Int16 nWord ) const
if
(
aReservedWord
[
nWord
].
isEmpty
())
{
// no cached content
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getOneReservedWordImpl
(
nWord
);
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getOneReservedWordImpl
(
nWord
);
}
return
aReservedWord
[
nWord
];
}
...
...
@@ -474,7 +474,7 @@ const std::shared_ptr< ::com::sun::star::i18n::Calendar2 > LocaleDataWrapper::ge
if
(
!
xDefaultCalendar
)
{
// no cached content
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getDefaultCalendarImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getDefaultCalendarImpl
();
}
return
xDefaultCalendar
;
}
...
...
@@ -497,7 +497,7 @@ const OUString& LocaleDataWrapper::getCurrSymbol() const
if
(
aCurrSymbol
.
isEmpty
())
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getCurrSymbolsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getCurrSymbolsImpl
();
}
return
aCurrSymbol
;
}
...
...
@@ -508,7 +508,7 @@ const OUString& LocaleDataWrapper::getCurrBankSymbol() const
if
(
aCurrBankSymbol
.
isEmpty
())
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getCurrSymbolsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getCurrSymbolsImpl
();
}
return
aCurrBankSymbol
;
}
...
...
@@ -519,7 +519,7 @@ sal_uInt16 LocaleDataWrapper::getCurrPositiveFormat() const
if
(
nCurrPositiveFormat
==
nCurrFormatInvalid
)
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getCurrFormatsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getCurrFormatsImpl
();
}
return
nCurrPositiveFormat
;
}
...
...
@@ -530,7 +530,7 @@ sal_uInt16 LocaleDataWrapper::getCurrNegativeFormat() const
if
(
nCurrNegativeFormat
==
nCurrFormatInvalid
)
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getCurrFormatsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getCurrFormatsImpl
();
}
return
nCurrNegativeFormat
;
}
...
...
@@ -541,7 +541,7 @@ sal_uInt16 LocaleDataWrapper::getCurrDigits() const
if
(
nCurrDigits
==
nCurrFormatInvalid
)
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getCurrSymbolsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getCurrSymbolsImpl
();
}
return
nCurrDigits
;
}
...
...
@@ -810,7 +810,7 @@ DateFormat LocaleDataWrapper::getDateFormat() const
if
(
nDateFormat
==
nDateFormatInvalid
)
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getDateFormatsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getDateFormatsImpl
();
}
return
(
DateFormat
)
nDateFormat
;
}
...
...
@@ -821,7 +821,7 @@ DateFormat LocaleDataWrapper::getLongDateFormat() const
if
(
nLongDateFormat
==
nDateFormatInvalid
)
{
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getDateFormatsImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getDateFormatsImpl
();
}
return
(
DateFormat
)
nLongDateFormat
;
}
...
...
@@ -1035,7 +1035,7 @@ const ::com::sun::star::uno::Sequence< sal_Int32 > LocaleDataWrapper::getDigitGr
if
(
!
aGrouping
.
getLength
()
||
aGrouping
[
0
]
==
0
)
{
// no cached content
aGuard
.
changeReadToWrite
();
((
LocaleDataWrapper
*
)
this
)
->
getDigitGroupingImpl
();
const_cast
<
LocaleDataWrapper
*>
(
this
)
->
getDigitGroupingImpl
();
}
return
aGrouping
;
}
...
...
unotools/source/i18n/transliterationwrapper.cxx
Dosyayı görüntüle @
720f0e55
...
...
@@ -139,7 +139,7 @@ void TransliterationWrapper::loadModuleIfNeeded( sal_uInt16 nLang )
void
TransliterationWrapper
::
loadModuleImpl
()
const
{
if
(
bFirstCall
)
((
TransliterationWrapper
*
)
this
)
->
setLanguageLocaleImpl
(
LANGUAGE_SYSTEM
);
const_cast
<
TransliterationWrapper
*>
(
this
)
->
setLanguageLocaleImpl
(
LANGUAGE_SYSTEM
);
try
{
...
...
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