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
eed2ad80
Kaydet (Commit)
eed2ad80
authored
Ock 12, 2012
tarafından
Christina Rossmanith
Kaydeden (comit)
Caolán McNamara
Ock 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace (Byte)String with rtl::O(U)String
üst
faf862a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
fontcache.cxx
vcl/generic/fontmanager/fontcache.cxx
+15
-15
No files found.
vcl/generic/fontmanager/fontcache.cxx
Dosyayı görüntüle @
eed2ad80
...
@@ -265,9 +265,9 @@ void FontCache::read()
...
@@ -265,9 +265,9 @@ void FontCache::read()
}
}
Byte
String
aLine
;
O
String
aLine
;
aStream
.
ReadLine
(
aLine
);
aStream
.
ReadLine
(
aLine
);
if
(
!
aLine
.
Equals
(
CACHE_MAGIC
)
)
if
(
!
aLine
.
equals
(
rtl
::
OString
(
RTL_CONSTASCII_STRINGPARAM
(
CACHE_MAGIC
))
)
)
{
{
#if OSL_DEBUG_LEVEL >1
#if OSL_DEBUG_LEVEL >1
fprintf
(
stderr
,
"FontCache::read: cache file %s fails magic test
\n
"
,
rtl
::
OUStringToOString
(
m_aCacheFile
,
osl_getThreadTextEncoding
()).
getStr
()
);
fprintf
(
stderr
,
"FontCache::read: cache file %s fails magic test
\n
"
,
rtl
::
OUStringToOString
(
m_aCacheFile
,
osl_getThreadTextEncoding
()).
getStr
()
);
...
@@ -282,20 +282,20 @@ void FontCache::read()
...
@@ -282,20 +282,20 @@ void FontCache::read()
do
do
{
{
aStream
.
ReadLine
(
aLine
);
aStream
.
ReadLine
(
aLine
);
if
(
aLine
.
CompareTo
(
"FontCacheDirectory:"
,
19
)
==
COMPARE_EQUAL
||
if
(
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"FontCacheDirectory:"
)
)
==
0
||
aLine
.
CompareTo
(
"EmptyFontCacheDirectory:"
,
24
)
==
COMPARE_EQUAL
)
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"EmptyFontCacheDirectory:"
)
)
==
0
)
{
{
bool
bEmpty
=
(
aLine
.
CompareTo
(
"Empty"
,
5
)
==
COMPARE_EQUAL
);
bool
bEmpty
=
(
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"Empty"
)
)
==
0
);
xub_StrLen
nSearchIndex
=
bEmpty
?
24
:
19
;
xub_StrLen
nSearchIndex
=
bEmpty
?
24
:
19
;
OString
aDir
;
OString
aDir
;
sal_Int64
nTimestamp
=
0
;
sal_Int64
nTimestamp
=
0
;
xub_StrLen
nTEnd
=
aLine
.
Search
(
':'
,
nSearchIndex
);
xub_StrLen
nTEnd
=
aLine
.
indexOf
(
':'
,
nSearchIndex
);
if
(
nTEnd
!=
STRING_NOTFOUND
)
if
(
nTEnd
!=
STRING_NOTFOUND
)
{
{
rtl
::
OString
aTimeStamp
=
aLine
.
C
opy
(
nSearchIndex
,
nTEnd
-
nSearchIndex
);
rtl
::
OString
aTimeStamp
=
aLine
.
c
opy
(
nSearchIndex
,
nTEnd
-
nSearchIndex
);
nTimestamp
=
aTimeStamp
.
toInt64
();
nTimestamp
=
aTimeStamp
.
toInt64
();
aDir
=
aLine
.
C
opy
(
nTEnd
+
1
);
aDir
=
aLine
.
c
opy
(
nTEnd
+
1
);
}
}
else
else
{
{
...
@@ -327,12 +327,12 @@ void FontCache::read()
...
@@ -327,12 +327,12 @@ void FontCache::read()
m_aCache
[
nDir
].
m_bUserOverrideOnly
=
bKeepOnlyUserOverridden
;
m_aCache
[
nDir
].
m_bUserOverrideOnly
=
bKeepOnlyUserOverridden
;
}
}
}
}
else
if
(
pDir
&&
aLine
.
CompareTo
(
"File:"
,
5
)
==
COMPARE_EQUAL
)
else
if
(
pDir
&&
aLine
.
compareTo
(
RTL_CONSTASCII_STRINGPARAM
(
"File:"
)
)
==
0
)
{
{
OString
aFile
(
aLine
.
C
opy
(
5
)
);
OString
aFile
(
aLine
.
c
opy
(
5
)
);
aStream
.
ReadLine
(
aLine
);
aStream
.
ReadLine
(
aLine
);
const
char
*
pLine
=
aLine
.
GetBuffe
r
();
const
char
*
pLine
=
aLine
.
getSt
r
();
fonttype
::
type
eType
=
(
fonttype
::
type
)
atoi
(
pLine
);
fonttype
::
type
eType
=
(
fonttype
::
type
)
atoi
(
pLine
);
if
(
eType
!=
fonttype
::
TrueType
&&
if
(
eType
!=
fonttype
::
TrueType
&&
...
@@ -350,8 +350,8 @@ void FontCache::read()
...
@@ -350,8 +350,8 @@ void FontCache::read()
for
(
int
n
=
0
;
n
<
nFonts
;
n
++
)
for
(
int
n
=
0
;
n
<
nFonts
;
n
++
)
{
{
aStream
.
ReadLine
(
aLine
);
aStream
.
ReadLine
(
aLine
);
pLine
=
aLine
.
GetBuffe
r
();
pLine
=
aLine
.
getSt
r
();
int
nLen
=
aLine
.
Len
();
int
nLen
=
aLine
.
getLength
();
PrintFontManager
::
PrintFont
*
pFont
=
NULL
;
PrintFontManager
::
PrintFont
*
pFont
=
NULL
;
switch
(
eType
)
switch
(
eType
)
...
@@ -386,8 +386,8 @@ void FontCache::read()
...
@@ -386,8 +386,8 @@ void FontCache::read()
}
}
}
}
aStream
.
ReadLine
(
aLine
);
aStream
.
ReadLine
(
aLine
);
pLine
=
aLine
.
GetBuffe
r
();
pLine
=
aLine
.
getSt
r
();
nLen
=
aLine
.
Len
();
nLen
=
aLine
.
getLength
();
// get up to 20 token positions
// get up to 20 token positions
const
int
nMaxTokens
=
20
;
const
int
nMaxTokens
=
20
;
...
...
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