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
5500c51e
Kaydet (Commit)
5500c51e
authored
Eyl 11, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
harden access to OUString[0]
Change-Id: Ibc2997f9974b8f6d561db0632642060ab95b80f0
üst
18fa868f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
builder.cxx
vcl/source/window/builder.cxx
+3
-3
layout.cxx
vcl/source/window/layout.cxx
+1
-1
No files found.
vcl/source/window/builder.cxx
Dosyayı görüntüle @
5500c51e
...
@@ -2807,7 +2807,7 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
...
@@ -2807,7 +2807,7 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
if
(
sKey
==
"expand"
)
if
(
sKey
==
"expand"
)
{
{
bool
bTrue
=
(
sValue
[
0
]
==
't'
||
sValue
[
0
]
==
'T'
||
sValue
[
0
]
==
'1'
);
bool
bTrue
=
(
!
sValue
.
isEmpty
()
&&
(
sValue
[
0
]
==
't'
||
sValue
[
0
]
==
'T'
||
sValue
[
0
]
==
'1'
)
);
if
(
pToolBoxParent
)
if
(
pToolBoxParent
)
pToolBoxParent
->
SetItemExpand
(
m_pParserState
->
m_nLastToolbarId
,
bTrue
);
pToolBoxParent
->
SetItemExpand
(
m_pParserState
->
m_nLastToolbarId
,
bTrue
);
else
else
...
@@ -2820,12 +2820,12 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
...
@@ -2820,12 +2820,12 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
if
(
sKey
==
"fill"
)
if
(
sKey
==
"fill"
)
{
{
bool
bTrue
=
(
sValue
[
0
]
==
't'
||
sValue
[
0
]
==
'T'
||
sValue
[
0
]
==
'1'
);
bool
bTrue
=
(
!
sValue
.
isEmpty
()
&&
(
sValue
[
0
]
==
't'
||
sValue
[
0
]
==
'T'
||
sValue
[
0
]
==
'1'
)
);
pCurrent
->
set_fill
(
bTrue
);
pCurrent
->
set_fill
(
bTrue
);
}
}
else
if
(
sKey
==
"pack-type"
)
else
if
(
sKey
==
"pack-type"
)
{
{
VclPackType
ePackType
=
(
sValue
[
0
]
==
'e'
||
sValue
[
0
]
==
'E'
)
?
VCL_PACK_END
:
VCL_PACK_START
;
VclPackType
ePackType
=
(
!
sValue
.
isEmpty
()
&&
(
sValue
[
0
]
==
'e'
||
sValue
[
0
]
==
'E'
)
)
?
VCL_PACK_END
:
VCL_PACK_START
;
pCurrent
->
set_pack_type
(
ePackType
);
pCurrent
->
set_pack_type
(
ePackType
);
}
}
else
if
(
sKey
==
"left-attach"
)
else
if
(
sKey
==
"left-attach"
)
...
...
vcl/source/window/layout.cxx
Dosyayı görüntüle @
5500c51e
...
@@ -1231,7 +1231,7 @@ void VclGrid::setAllocation(const Size& rAllocation)
...
@@ -1231,7 +1231,7 @@ void VclGrid::setAllocation(const Size& rAllocation)
bool
toBool
(
const
OString
&
rValue
)
bool
toBool
(
const
OString
&
rValue
)
{
{
return
(
rValue
[
0
]
==
't'
||
rValue
[
0
]
==
'T'
||
rValue
[
0
]
==
'1'
);
return
(
!
rValue
.
isEmpty
()
&&
(
rValue
[
0
]
==
't'
||
rValue
[
0
]
==
'T'
||
rValue
[
0
]
==
'1'
)
);
}
}
bool
VclGrid
::
set_property
(
const
OString
&
rKey
,
const
OString
&
rValue
)
bool
VclGrid
::
set_property
(
const
OString
&
rKey
,
const
OString
&
rValue
)
...
...
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