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
266fa9f4
Kaydet (Commit)
266fa9f4
authored
Haz 24, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fVal->nVal
Change-Id: Ia5b041094f29e42cb60f2c83888cace42b91cc13
üst
a1b89677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
convert.cxx
stoc/source/typeconv/convert.cxx
+4
-4
No files found.
stoc/source/typeconv/convert.cxx
Dosyayı görüntüle @
266fa9f4
...
...
@@ -391,15 +391,15 @@ sal_Int64 TypeConverter_Impl::toHyper( const Any& rAny, sal_Int64 min, sal_uInt6
// STRING
case
TypeClass_STRING
:
{
sal_Int64
f
Val
=
SAL_CONST_INT64
(
0
);
if
(
!
getHyperValue
(
f
Val
,
*
(
OUString
const
*
)
rAny
.
getValue
()
))
sal_Int64
n
Val
=
SAL_CONST_INT64
(
0
);
if
(
!
getHyperValue
(
n
Val
,
*
(
OUString
const
*
)
rAny
.
getValue
()
))
{
throw
CannotConvertException
(
"invalid STRING value!"
,
Reference
<
XInterface
>
(),
aDestinationClass
,
FailReason
::
IS_NOT_NUMBER
,
0
);
}
nRet
=
f
Val
;
if
(
fVal
>=
min
&&
(
fVal
<
0
||
((
sal_uInt64
)
f
Val
)
<=
max
))
nRet
=
n
Val
;
if
(
nVal
>=
min
&&
(
nVal
<
0
||
((
sal_uInt64
)
n
Val
)
<=
max
))
return
nRet
;
throw
CannotConvertException
(
"STRING value out of range!"
,
...
...
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