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
01c74f43
Kaydet (Commit)
01c74f43
authored
Eki 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735353 Unchecked return value
Change-Id: Iab54019d07ac27b4d8247d789c29165d24e2288f
üst
c10548ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
propimp0.cxx
xmloff/source/draw/propimp0.cxx
+13
-7
No files found.
xmloff/source/draw/propimp0.cxx
Dosyayı görüntüle @
01c74f43
...
@@ -48,15 +48,21 @@ bool XMLDurationPropertyHdl::importXML(
...
@@ -48,15 +48,21 @@ bool XMLDurationPropertyHdl::importXML(
const
SvXMLUnitConverter
&
)
const
const
SvXMLUnitConverter
&
)
const
{
{
util
::
Duration
aDuration
;
util
::
Duration
aDuration
;
::
sax
::
Converter
::
convertDuration
(
aDuration
,
rStrImpValue
);
const
double
fSeconds
=
((
aDuration
.
Days
*
24
+
aDuration
.
Hours
)
*
60
if
(
::
sax
::
Converter
::
convertDuration
(
aDuration
,
rStrImpValue
))
+
aDuration
.
Minutes
)
*
60
{
+
aDuration
.
Seconds
const
double
fSeconds
=
((
aDuration
.
Days
*
24
+
aDuration
.
Hours
)
*
60
+
aDuration
.
NanoSeconds
/
static_cast
<
double
>
(
::
tools
::
Time
::
nanoSecPerSec
);
+
aDuration
.
Minutes
)
*
60
rValue
<<=
fSeconds
;
+
aDuration
.
Seconds
+
aDuration
.
NanoSeconds
/
static_cast
<
double
>
(
::
tools
::
Time
::
nanoSecPerSec
);
rValue
<<=
fSeconds
;
return
true
;
return
true
;
}
SAL_WARN_IF
(
!
rStrImpValue
.
isEmpty
(),
"xmloff"
,
"Invalid duration: "
<<
rStrImpValue
);
return
false
;
}
}
bool
XMLDurationPropertyHdl
::
exportXML
(
bool
XMLDurationPropertyHdl
::
exportXML
(
...
...
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