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
4e85b537
Kaydet (Commit)
4e85b537
authored
Ock 13, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tidy some string types
üst
eed2ad80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
fontcache.cxx
vcl/generic/fontmanager/fontcache.cxx
+7
-6
No files found.
vcl/generic/fontmanager/fontcache.cxx
Dosyayı görüntüle @
4e85b537
...
...
@@ -267,7 +267,7 @@ void FontCache::read()
OString
aLine
;
aStream
.
ReadLine
(
aLine
);
if
(
!
aLine
.
equals
(
rtl
::
OString
(
RTL_CONSTASCII_STRINGPARAM
(
CACHE_MAGIC
))
)
)
if
(
!
aLine
.
equalsL
(
RTL_CONSTASCII_STRINGPARAM
(
CACHE_MAGIC
))
)
{
#if OSL_DEBUG_LEVEL >1
fprintf
(
stderr
,
"FontCache::read: cache file %s fails magic test
\n
"
,
rtl
::
OUStringToOString
(
m_aCacheFile
,
osl_getThreadTextEncoding
()).
getStr
()
);
...
...
@@ -277,7 +277,6 @@ void FontCache::read()
int
nDir
=
0
;
FontDirMap
*
pDir
=
NULL
;
xub_StrLen
nIndex
;
bool
bKeepOnlyUserOverridden
=
false
;
do
{
...
...
@@ -286,12 +285,12 @@ void FontCache::read()
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"EmptyFontCacheDirectory:"
)
)
==
0
)
{
bool
bEmpty
=
(
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"Empty"
)
)
==
0
);
xub_StrLen
nSearchIndex
=
bEmpty
?
24
:
19
;
sal_Int32
nSearchIndex
=
bEmpty
?
24
:
19
;
OString
aDir
;
sal_Int64
nTimestamp
=
0
;
xub_StrLen
nTEnd
=
aLine
.
indexOf
(
':'
,
nSearchIndex
);
if
(
nTEnd
!=
STRING_NOTFOUND
)
sal_Int32
nTEnd
=
aLine
.
indexOf
(
':'
,
nSearchIndex
);
if
(
nTEnd
!=
-
1
)
{
rtl
::
OString
aTimeStamp
=
aLine
.
copy
(
nSearchIndex
,
nTEnd
-
nSearchIndex
);
nTimestamp
=
aTimeStamp
.
toInt64
();
...
...
@@ -368,6 +367,8 @@ void FontCache::read()
default
:
break
;
}
sal_Int32
nIndex
;
for
(
nIndex
=
0
;
nIndex
<
nLen
&&
pLine
[
nIndex
]
!=
';'
;
nIndex
++
)
;
...
...
@@ -376,7 +377,7 @@ void FontCache::read()
sal_True
);
while
(
nIndex
<
nLen
)
{
xub_StrLen
nLastIndex
=
nIndex
+
1
;
sal_Int32
nLastIndex
=
nIndex
+
1
;
for
(
nIndex
=
nLastIndex
;
nIndex
<
nLen
&&
pLine
[
nIndex
]
!=
';'
;
nIndex
++
)
;
if
(
nIndex
-
nLastIndex
)
...
...
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