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
2daceb87
Kaydet (Commit)
2daceb87
authored
Haz 26, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
clang: Uninitialized argument value
Change-Id: Id65c5815185cf022171e3523c6ad92545830104c
üst
cd29cab8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
24 deletions
+22
-24
sbxarray.cxx
basic/source/sbx/sbxarray.cxx
+4
-6
ErrorBarItemConverter.cxx
...ource/controller/itemsetwrapper/ErrorBarItemConverter.cxx
+9
-9
StatisticsItemConverter.cxx
...rce/controller/itemsetwrapper/StatisticsItemConverter.cxx
+9
-9
No files found.
basic/source/sbx/sbxarray.cxx
Dosyayı görüntüle @
2daceb87
...
...
@@ -680,6 +680,8 @@ bool SbxDimArray::GetDim( short n, short& rlb, short& rub ) const
{
sal_Int32
rlb32
,
rub32
;
bool
bRet
=
GetDim32
(
n
,
rlb32
,
rub32
);
rub
=
(
short
)
rub32
;
rlb
=
(
short
)
rlb32
;
if
(
bRet
)
{
if
(
rlb32
<
-
SBX_MAXINDEX
||
rub32
>
SBX_MAXINDEX
)
...
...
@@ -687,8 +689,6 @@ bool SbxDimArray::GetDim( short n, short& rlb, short& rub ) const
SetError
(
SbxERR_BOUNDS
);
return
false
;
}
rub
=
(
short
)
rub32
;
rlb
=
(
short
)
rlb32
;
}
return
bRet
;
}
...
...
@@ -753,9 +753,7 @@ void SbxDimArray::Put32( SbxVariable* p, const sal_Int32* pIdx )
SbxArray
::
Put32
(
p
,
Offset32
(
pIdx
)
);
}
// Element-Number with the help of Parameter-Array
sal_uInt32
SbxDimArray
::
Offset32
(
SbxArray
*
pPar
)
{
#ifndef DISABLE_SCRIPTING
...
...
@@ -793,7 +791,7 @@ bool SbxDimArray::LoadData( SvStream& rStrm, sal_uInt16 nVer )
rStrm
.
ReadInt16
(
nDimension
);
for
(
short
i
=
0
;
i
<
nDimension
&&
rStrm
.
GetError
()
==
SVSTREAM_OK
;
i
++
)
{
sal_Int16
lb
,
ub
;
sal_Int16
lb
(
0
),
ub
(
0
)
;
rStrm
.
ReadInt16
(
lb
).
ReadInt16
(
ub
);
AddDim
(
lb
,
ub
);
}
...
...
@@ -807,7 +805,7 @@ bool SbxDimArray::StoreData( SvStream& rStrm ) const
{
short
lb
,
ub
;
GetDim
(
i
,
lb
,
ub
);
rStrm
.
WriteInt16
(
(
sal_Int16
)
lb
).
WriteInt16
(
(
sal_Int16
)
ub
);
rStrm
.
WriteInt16
(
lb
).
WriteInt16
(
ub
);
}
return
SbxArray
::
StoreData
(
rStrm
);
}
...
...
chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
Dosyayı görüntüle @
2daceb87
...
...
@@ -198,7 +198,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
if
(
!
(
::
rtl
::
math
::
approxEqual
(
fPos
,
fValue
)
&&
...
...
@@ -216,7 +216,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
GetPropertySet
(),
fPos
,
fNeg
);
if
(
!
::
rtl
::
math
::
approxEqual
(
fPos
,
fValue
))
...
...
@@ -234,7 +234,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
if
(
!
::
rtl
::
math
::
approxEqual
(
fNeg
,
fValue
))
...
...
@@ -256,7 +256,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
bool
bNewIndPos
=
(
eIndicate
==
CHINDICATE_BOTH
||
eIndicate
==
CHINDICATE_UP
);
bool
bNewIndNeg
=
(
eIndicate
==
CHINDICATE_BOTH
||
eIndicate
==
CHINDICATE_DOWN
);
bool
bShowPos
,
bShowNeg
;
bool
bShowPos
(
false
),
bShowNeg
(
false
)
;
lcl_getErrorIndicatorValues
(
xErrorBarProp
,
bShowPos
,
bShowNeg
);
if
(
(
bShowPos
!=
bNewIndPos
||
...
...
@@ -369,7 +369,7 @@ void ErrorBarItemConverter::FillSpecialItem(
case
SCHATTR_STAT_PERCENT
:
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
GetPropertySet
(),
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
(
fPos
+
fNeg
)
/
2.0
,
nWhichId
));
}
...
...
@@ -377,7 +377,7 @@ void ErrorBarItemConverter::FillSpecialItem(
case
SCHATTR_STAT_BIGERROR
:
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
GetPropertySet
(),
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
(
fPos
+
fNeg
)
/
2.0
,
nWhichId
));
}
...
...
@@ -385,7 +385,7 @@ void ErrorBarItemConverter::FillSpecialItem(
case
SCHATTR_STAT_CONSTPLUS
:
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
GetPropertySet
(),
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
fPos
,
nWhichId
));
}
...
...
@@ -393,7 +393,7 @@ void ErrorBarItemConverter::FillSpecialItem(
case
SCHATTR_STAT_CONSTMINUS
:
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
GetPropertySet
(),
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
fNeg
,
nWhichId
));
}
...
...
@@ -402,7 +402,7 @@ void ErrorBarItemConverter::FillSpecialItem(
case
SCHATTR_STAT_INDICATE
:
{
SvxChartIndicate
eIndicate
=
CHINDICATE_BOTH
;
bool
bShowPos
,
bShowNeg
;
bool
bShowPos
(
false
),
bShowNeg
(
false
)
;
lcl_getErrorIndicatorValues
(
GetPropertySet
(),
bShowPos
,
bShowNeg
);
if
(
bShowPos
)
...
...
chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
Dosyayı görüntüle @
2daceb87
...
...
@@ -392,7 +392,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
if
(
bOldHasErrorBar
&&
...
...
@@ -418,7 +418,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
if
(
bOldHasErrorBar
&&
...
...
@@ -441,7 +441,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
double
fValue
=
static_cast
<
const
SvxDoubleItem
&
>
(
rItemSet
.
Get
(
nWhichId
)).
GetValue
();
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
if
(
bOldHasErrorBar
&&
...
...
@@ -573,7 +573,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
bool
bNewIndPos
=
(
eIndicate
==
CHINDICATE_BOTH
||
eIndicate
==
CHINDICATE_UP
);
bool
bNewIndNeg
=
(
eIndicate
==
CHINDICATE_BOTH
||
eIndicate
==
CHINDICATE_DOWN
);
bool
bShowPos
,
bShowNeg
;
bool
bShowPos
(
false
),
bShowNeg
(
false
)
;
lcl_getErrorIndicatorValues
(
xErrorBarProp
,
bShowPos
,
bShowNeg
);
if
(
bOldHasErrorBar
&&
...
...
@@ -704,7 +704,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
lcl_GetErrorBar
(
GetPropertySet
(),
bYError
));
if
(
xErrorBarProp
.
is
())
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
(
fPos
+
fNeg
)
/
2.0
,
nWhichId
));
}
...
...
@@ -718,7 +718,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
lcl_GetErrorBar
(
GetPropertySet
(),
bYError
));
if
(
xErrorBarProp
.
is
())
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
(
fPos
+
fNeg
)
/
2.0
,
nWhichId
));
}
...
...
@@ -732,7 +732,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
lcl_GetErrorBar
(
GetPropertySet
(),
bYError
));
if
(
xErrorBarProp
.
is
())
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
fPos
,
nWhichId
));
}
...
...
@@ -746,7 +746,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
lcl_GetErrorBar
(
GetPropertySet
(),
bYError
));
if
(
xErrorBarProp
.
is
())
{
double
fPos
,
fNeg
;
double
fPos
(
0.0
),
fNeg
(
0.0
)
;
lcl_getErrorValues
(
xErrorBarProp
,
fPos
,
fNeg
);
rOutItemSet
.
Put
(
SvxDoubleItem
(
fNeg
,
nWhichId
));
}
...
...
@@ -836,7 +836,7 @@ void StatisticsItemConverter::FillSpecialItem(
SvxChartIndicate
eIndicate
=
CHINDICATE_BOTH
;
if
(
xErrorBarProp
.
is
())
{
bool
bShowPos
,
bShowNeg
;
bool
bShowPos
(
false
),
bShowNeg
(
false
)
;
lcl_getErrorIndicatorValues
(
xErrorBarProp
,
bShowPos
,
bShowNeg
);
if
(
bShowPos
)
...
...
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