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
40e1595d
Kaydet (Commit)
40e1595d
authored
Kas 29, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rewrite some (trivial) assignments inside if/while conditions: oox
Change-Id: I75de45677603800baec18d03114418181c4393c2
üst
542174a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
vmlinputstream.cxx
oox/source/vml/vmlinputstream.cxx
+14
-6
No files found.
oox/source/vml/vmlinputstream.cxx
Dosyayı görüntüle @
40e1595d
...
...
@@ -93,19 +93,23 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal
{
// pcNameBeg points to begin of attribute name, find equality sign
const
sal_Char
*
pcEqualSign
=
lclFindCharacter
(
pcNameBeg
,
pcEnd
,
'='
);
if
((
bOk
=
(
pcEqualSign
<
pcEnd
)))
bOk
=
(
pcEqualSign
<
pcEnd
);
if
(
bOk
)
{
// find end of attribute name (ignore whitespace between name and equality sign)
const
sal_Char
*
pcNameEnd
=
lclTrimWhiteSpaceFromEnd
(
pcNameBeg
,
pcEqualSign
);
if
(
(
bOk
=
(
pcNameBeg
<
pcNameEnd
))
)
bOk
=
(
pcNameBeg
<
pcNameEnd
);
if
(
bOk
)
{
// find begin of attribute value (must be single or double quote)
const
sal_Char
*
pcValueBeg
=
lclFindNonWhiteSpace
(
pcEqualSign
+
1
,
pcEnd
);
if
(
(
bOk
=
(
pcValueBeg
<
pcEnd
)
&&
((
*
pcValueBeg
==
'\''
)
||
(
*
pcValueBeg
==
'"'
)))
)
bOk
=
(
pcValueBeg
<
pcEnd
)
&&
((
*
pcValueBeg
==
'\''
)
||
(
*
pcValueBeg
==
'"'
));
if
(
bOk
)
{
// find end of attribute value (matching quote character)
const
sal_Char
*
pcValueEnd
=
lclFindCharacter
(
pcValueBeg
+
1
,
pcEnd
,
*
pcValueBeg
);
if
(
(
bOk
=
(
pcValueEnd
<
pcEnd
))
)
bOk
=
(
pcValueEnd
<
pcEnd
);
if
(
bOk
)
{
++
pcValueEnd
;
OString
aAttribName
(
pcNameBeg
,
static_cast
<
sal_Int32
>
(
pcNameEnd
-
pcNameBeg
)
);
...
...
@@ -120,8 +124,12 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal
aAttributes
[
pcNameBeg
]
=
aAttribData
;
// continue with next attribute (skip whitespace after this attribute)
pcNameBeg
=
pcValueEnd
;
if
(
(
pcNameBeg
<
pcEnd
)
&&
((
bOk
=
lclIsWhiteSpace
(
*
pcNameBeg
)))
)
pcNameBeg
=
lclFindNonWhiteSpace
(
pcNameBeg
+
1
,
pcEnd
);
if
(
pcNameBeg
<
pcEnd
)
{
bOk
=
lclIsWhiteSpace
(
*
pcNameBeg
);
if
(
bOk
)
pcNameBeg
=
lclFindNonWhiteSpace
(
pcNameBeg
+
1
,
pcEnd
);
}
}
}
}
...
...
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