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
be214eb2
Kaydet (Commit)
be214eb2
authored
Eyl 25, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid coverity#1371161 Missing move assignment operator
Change-Id: Ief3dd38ade3fca74ea35e2a1a71637cba3336b59
üst
c606f4bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
unicode.cxx
i18nutil/source/utility/unicode.cxx
+1
-1
fontconfig.cxx
vcl/unx/generic/fontmanager/fontconfig.cxx
+5
-6
No files found.
i18nutil/source/utility/unicode.cxx
Dosyayı görüntüle @
be214eb2
...
...
@@ -976,7 +976,7 @@ OUString SAL_CALL unicode::formatPercent(double dNumber,
// http://www.unicode.org/cldr/charts/24/by_type/numbers.number_formatting_patterns.html
// so format using French which has the desired rules
if
(
aLangTag
.
getLanguage
()
==
"es"
||
aLangTag
.
getLanguage
()
==
"sl"
)
aLangTag
=
LanguageTag
(
"fr-FR"
);
aLangTag
.
reset
(
"fr-FR"
);
icu
::
Locale
aLocale
=
LanguageTagIcu
::
getIcuLocale
(
aLangTag
);
...
...
vcl/unx/generic/fontmanager/fontconfig.cxx
Dosyayı görüntüle @
be214eb2
...
...
@@ -866,15 +866,14 @@ namespace
return
bIsImpossible
;
}
LanguageTa
g
getExemplarLangTagForCodePoint
(
sal_uInt32
currentChar
)
OUStrin
g
getExemplarLangTagForCodePoint
(
sal_uInt32
currentChar
)
{
int32_t
script
=
u_getIntPropertyValue
(
currentChar
,
UCHAR_SCRIPT
);
UScriptCode
eScript
=
static_cast
<
UScriptCode
>
(
script
);
OStringBuffer
aBuf
(
unicode
::
getExemplarLanguageForUScriptCode
(
eScript
));
const
char
*
pScriptCode
=
uscript_getShortName
(
eScript
);
if
(
pScriptCode
)
if
(
const
char
*
pScriptCode
=
uscript_getShortName
(
eScript
))
aBuf
.
append
(
'-'
).
append
(
pScriptCode
);
return
LanguageTag
(
OStringToOUString
(
aBuf
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
)
);
return
OStringToOUString
(
aBuf
.
makeStringAndClear
(),
RTL_TEXTENCODING_UTF8
);
}
#if ENABLE_DBUS
...
...
@@ -977,7 +976,7 @@ void PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
//#i105784#/rhbz#527719 improve selection of fallback font
if
(
aLangAttrib
.
isEmpty
())
{
aLangTag
=
getExemplarLangTagForCodePoint
(
nCode
);
aLangTag
.
reset
(
getExemplarLangTagForCodePoint
(
nCode
)
);
aLangAttrib
=
mapToFontConfigLangTag
(
aLangTag
);
}
}
...
...
@@ -1109,7 +1108,7 @@ void PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
//scripts to default to a given language.
for
(
sal_Int32
i
=
0
;
i
<
nRemainingLen
;
++
i
)
{
LanguageTag
aOurTag
=
getExemplarLangTagForCodePoint
(
pRemainingCodes
[
i
]
);
LanguageTag
aOurTag
(
getExemplarLangTagForCodePoint
(
pRemainingCodes
[
i
])
);
OString
sTag
=
OUStringToOString
(
aOurTag
.
getBcp47
(),
RTL_TEXTENCODING_UTF8
);
if
(
m_aPreviousLangSupportRequests
.
find
(
sTag
)
!=
m_aPreviousLangSupportRequests
.
end
())
continue
;
...
...
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