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
eace834d
Kaydet (Commit)
eace834d
authored
May 02, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Assert that nMonth and nDay <100 to be representable
Change-Id: Ie52269478ecac75519d04310a17873904c8167e6
üst
9daa6e29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tdate.cxx
tools/source/datetime/tdate.cxx
+2
-0
No files found.
tools/source/datetime/tdate.cxx
Dosyayı görüntüle @
eace834d
...
@@ -104,6 +104,8 @@ inline sal_uInt16 ImplDaysInMonth( sal_uInt16 nMonth, sal_Int16 nYear )
...
@@ -104,6 +104,8 @@ inline sal_uInt16 ImplDaysInMonth( sal_uInt16 nMonth, sal_Int16 nYear )
void
Date
::
setDateFromDMY
(
sal_uInt16
nDay
,
sal_uInt16
nMonth
,
sal_Int16
nYear
)
void
Date
::
setDateFromDMY
(
sal_uInt16
nDay
,
sal_uInt16
nMonth
,
sal_Int16
nYear
)
{
{
SAL_WARN_IF
(
nYear
==
0
,
"tools.datetime"
,
"Date::setDateFromDMY - sure about 0 year? It's not in the calendar."
);
SAL_WARN_IF
(
nYear
==
0
,
"tools.datetime"
,
"Date::setDateFromDMY - sure about 0 year? It's not in the calendar."
);
assert
(
nMonth
<
100
&&
"nMonth % 100 not representable"
);
assert
(
nDay
<
100
&&
"nDay % 100 not representable"
);
if
(
nYear
<
0
)
if
(
nYear
<
0
)
mnDate
=
mnDate
=
(
static_cast
<
sal_Int32
>
(
nYear
)
*
10000
)
-
(
static_cast
<
sal_Int32
>
(
nYear
)
*
10000
)
-
...
...
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