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
f2ac9caf
Kaydet (Commit)
f2ac9caf
authored
Eyl 04, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce nVal scope
Change-Id: Id5756033ccfbe392ae8264afbd3e2e0afd487f6b
üst
8fde3dd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
cff.cxx
vcl/source/fontsubset/cff.cxx
+7
-8
No files found.
vcl/source/fontsubset/cff.cxx
Dosyayı görüntüle @
f2ac9caf
...
...
@@ -506,7 +506,6 @@ void CffSubsetterContext::setCharStringType( int nVal)
void
CffSubsetterContext
::
readDictOp
()
{
ValType
nVal
=
0
;
const
U8
c
=
*
mpReadPtr
;
if
(
c
<=
21
)
{
int
nOpId
=
*
(
mpReadPtr
++
);
...
...
@@ -534,8 +533,8 @@ void CffSubsetterContext::readDictOp()
default
:
break
;
// TODO: handle more boolean dictops?
}
break
;
case
'n'
:
// dict-op number
nVal
=
popVal
();
case
'n'
:
{
// dict-op number
ValType
nVal
=
popVal
();
nInt
=
static_cast
<
int
>
(
nVal
);
switch
(
nOpId
)
{
case
10
:
mpCffLocal
->
maStemStdHW
=
nVal
;
break
;
// "StdHW"
...
...
@@ -555,7 +554,7 @@ void CffSubsetterContext::readDictOp()
case
937
:
mnFDSelectBase
=
nInt
;
break
;
// "nFDSelect"
default
:
break
;
// TODO: handle more numeric dictops?
}
break
;
}
break
;
case
'a'
:
{
// array
switch
(
nOpId
)
{
case
5
:
maFontBBox
.
clear
();
break
;
// "FontBBox"
...
...
@@ -563,7 +562,7 @@ void CffSubsetterContext::readDictOp()
default
:
break
;
// TODO: reset other arrays?
}
for
(
int
i
=
0
;
i
<
size
();
++
i
)
{
nVal
=
getVal
(
i
);
ValType
nVal
=
getVal
(
i
);
switch
(
nOpId
)
{
case
5
:
maFontBBox
.
push_back
(
nVal
);
break
;
// "FontBBox"
case
907
:
maFontMatrix
.
push_back
(
nVal
);
break
;
// "FontMatrix"
...
...
@@ -573,7 +572,7 @@ void CffSubsetterContext::readDictOp()
clear
();
}
break
;
case
'd'
:
{
// delta array
nVal
=
0
;
ValType
nVal
=
0
;
for
(
int
i
=
0
;
i
<
size
();
++
i
)
{
nVal
+=
getVal
(
i
);
switch
(
nOpId
)
{
...
...
@@ -626,13 +625,13 @@ void CffSubsetterContext::readDictOp()
if
(
(
sizeof
(
nS32
)
!=
4
)
&&
(
nS32
&
(
1U
<<
31
)))
nS32
|=
(
~
0U
)
<<
31
;
// assuming 2s complement
mpReadPtr
+=
4
;
nVal
=
static_cast
<
ValType
>
(
nS32
);
ValType
nVal
=
static_cast
<
ValType
>
(
nS32
);
push
(
nVal
);
}
else
if
(
c
==
30
)
{
// real number
++
mpReadPtr
;
// skip 30
const
RealType
fReal
=
readRealVal
();
// push value onto stack
nVal
=
fReal
;
ValType
nVal
=
fReal
;
push
(
nVal
);
}
}
...
...
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