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
38272ba9
Kaydet (Commit)
38272ba9
authored
Tem 21, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Scope reduction by throwing early.
Change-Id: Ic0b7b69b8c4e57064b31ef62ddceaf6094ca9991
üst
059ce597
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
DataSeries.cxx
chart2/source/model/main/DataSeries.cxx
+23
-26
No files found.
chart2/source/model/main/DataSeries.cxx
Dosyayı görüntüle @
38272ba9
...
@@ -335,41 +335,38 @@ Reference< beans::XPropertySet >
...
@@ -335,41 +335,38 @@ Reference< beans::XPropertySet >
::
std
::
vector
<
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
>
aValuesSeries
(
::
std
::
vector
<
Reference
<
chart2
::
data
::
XLabeledDataSequence
>
>
aValuesSeries
(
DataSeriesHelper
::
getAllDataSequencesByRole
(
aSequences
,
"values"
,
true
)
);
DataSeriesHelper
::
getAllDataSequencesByRole
(
aSequences
,
"values"
,
true
)
);
if
(
!
aValuesSeries
.
empty
()
)
if
(
aValuesSeries
.
empty
())
throw
lang
::
IndexOutOfBoundsException
();
Reference
<
chart2
::
data
::
XDataSequence
>
xSeq
(
aValuesSeries
.
front
()
->
getValues
()
);
if
(
0
<=
nIndex
&&
nIndex
<
xSeq
->
getData
().
getLength
()
)
{
{
Reference
<
chart2
::
data
::
XDataSequence
>
xSeq
(
aValuesSeries
.
front
()
->
getValues
()
);
if
(
0
<=
nIndex
&&
nIndex
<
xSeq
->
getData
().
getLength
()
)
{
{
MutexGuard
aGuard
(
GetMutex
()
);
tDataPointAttributeContainer
::
iterator
aIt
(
m_aAttributedDataPoints
.
find
(
nIndex
)
);
if
(
aIt
!=
m_aAttributedDataPoints
.
end
()
)
xResult
=
(
*
aIt
).
second
;
}
if
(
!
xResult
.
is
()
)
{
Reference
<
beans
::
XPropertySet
>
xParentProperties
;
Reference
<
util
::
XModifyListener
>
xModifyEventForwarder
;
{
{
MutexGuard
aGuard
(
GetMutex
()
);
MutexGuard
aGuard
(
GetMutex
()
);
tDataPointAttributeContainer
::
iterator
aIt
(
m_aAttributedDataPoints
.
find
(
nIndex
)
);
xParentProperties
=
this
;
if
(
aIt
!=
m_aAttributedDataPoints
.
end
()
)
xModifyEventForwarder
=
m_xModifyEventForwarder
;
xResult
=
(
*
aIt
).
second
;
}
}
if
(
!
xResult
.
is
()
)
{
Reference
<
beans
::
XPropertySet
>
xParentProperties
;
Reference
<
util
::
XModifyListener
>
xModifyEventForwarder
;
{
MutexGuard
aGuard
(
GetMutex
()
);
xParentProperties
=
this
;
xModifyEventForwarder
=
m_xModifyEventForwarder
;
}
// create a new XPropertySet for this data point
// create a new XPropertySet for this data point
xResult
.
set
(
new
DataPoint
(
xParentProperties
)
);
xResult
.
set
(
new
DataPoint
(
xParentProperties
)
);
{
{
MutexGuard
aGuard
(
GetMutex
()
);
MutexGuard
aGuard
(
GetMutex
()
);
m_aAttributedDataPoints
[
nIndex
]
=
xResult
;
m_aAttributedDataPoints
[
nIndex
]
=
xResult
;
}
ModifyListenerHelper
::
addListener
(
xResult
,
xModifyEventForwarder
);
}
}
ModifyListenerHelper
::
addListener
(
xResult
,
xModifyEventForwarder
);
}
}
}
}
else
{
throw
lang
::
IndexOutOfBoundsException
();
}
return
xResult
;
return
xResult
;
}
}
...
...
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