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
3f3980ff
Kaydet (Commit)
3f3980ff
authored
Nis 07, 2013
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some cppcheck cleaning
Change-Id: I425ed98a721ded162c2ae08d145aaa9dbf548632
üst
5bd53db1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
15 deletions
+7
-15
ObjectNameProvider.cxx
chart2/source/controller/dialogs/ObjectNameProvider.cxx
+3
-6
ObjectIdentifier.cxx
chart2/source/tools/ObjectIdentifier.cxx
+2
-5
qpro.cxx
sc/source/filter/qpro/qpro.cxx
+1
-2
xmluconv.cxx
xmloff/source/core/xmluconv.cxx
+1
-2
No files found.
chart2/source/controller/dialogs/ObjectNameProvider.cxx
Dosyayı görüntüle @
3f3980ff
...
@@ -509,9 +509,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
...
@@ -509,9 +509,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
sal_Int32
nPointIndex
(
ObjectIdentifier
::
getParticleID
(
rObjectCID
).
toInt32
()
);
sal_Int32
nPointIndex
(
ObjectIdentifier
::
getParticleID
(
rObjectCID
).
toInt32
()
);
//replace data point index
//replace data point index
sal_Int32
nIndex
=
-
1
;
OUString
aWildcard
(
"%POINTNUMBER"
);
OUString
aWildcard
(
"%POINTNUMBER"
);
nIndex
=
aRet
.
indexOf
(
aWildcard
);
sal_Int32
nIndex
=
aRet
.
indexOf
(
aWildcard
);
if
(
nIndex
!=
-
1
)
if
(
nIndex
!=
-
1
)
{
{
aRet
=
aRet
.
replaceAt
(
nIndex
,
aWildcard
.
getLength
(),
OUString
::
valueOf
(
nPointIndex
+
1
)
);
aRet
=
aRet
.
replaceAt
(
nIndex
,
aWildcard
.
getLength
(),
OUString
::
valueOf
(
nPointIndex
+
1
)
);
...
@@ -569,9 +568,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
...
@@ -569,9 +568,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
RegressionCurveHelper
::
initializeCurveCalculator
(
xCalculator
,
xSeries
,
xChartModel
);
RegressionCurveHelper
::
initializeCurveCalculator
(
xCalculator
,
xSeries
,
xChartModel
);
// replace formula
// replace formula
sal_Int32
nIndex
=
-
1
;
OUString
aWildcard
(
"%FORMULA"
);
OUString
aWildcard
(
"%FORMULA"
);
nIndex
=
aRet
.
indexOf
(
aWildcard
);
sal_Int32
nIndex
=
aRet
.
indexOf
(
aWildcard
);
if
(
nIndex
!=
-
1
)
if
(
nIndex
!=
-
1
)
aRet
=
aRet
.
replaceAt
(
nIndex
,
aWildcard
.
getLength
(),
xCalculator
->
getRepresentation
());
aRet
=
aRet
.
replaceAt
(
nIndex
,
aWildcard
.
getLength
(),
xCalculator
->
getRepresentation
());
...
@@ -620,9 +618,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
...
@@ -620,9 +618,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
sal_Unicode
aDecimalSep
(
'.'
);
sal_Unicode
aDecimalSep
(
'.'
);
sal_Int32
nIndex
=
-
1
;
OUString
aWildcard
(
"%AVERAGE_VALUE"
);
OUString
aWildcard
(
"%AVERAGE_VALUE"
);
nIndex
=
aRet
.
indexOf
(
aWildcard
);
sal_Int32
nIndex
=
aRet
.
indexOf
(
aWildcard
);
// as the curve is constant, the value at any x-value is ok
// as the curve is constant, the value at any x-value is ok
if
(
nIndex
!=
-
1
)
if
(
nIndex
!=
-
1
)
{
{
...
...
chart2/source/tools/ObjectIdentifier.cxx
Dosyayı görüntüle @
3f3980ff
...
@@ -764,8 +764,7 @@ bool ObjectIdentifier::isMultiClickObject( const OUString& rClassifiedIdentifier
...
@@ -764,8 +764,7 @@ bool ObjectIdentifier::isMultiClickObject( const OUString& rClassifiedIdentifier
//was selected before;
//was selected before;
//!!!!! by definition the name of a MultiClickObject starts with "CID/MultiClick:"
//!!!!! by definition the name of a MultiClickObject starts with "CID/MultiClick:"
bool
bRet
=
false
;
bool
bRet
=
rClassifiedIdentifier
.
match
(
m_aMultiClick
,
m_aProtocol
.
getLength
()
);
bRet
=
rClassifiedIdentifier
.
match
(
m_aMultiClick
,
m_aProtocol
.
getLength
()
);
return
bRet
;
return
bRet
;
}
}
...
@@ -1027,11 +1026,9 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType,
...
@@ -1027,11 +1026,9 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType,
sal_Int32
ObjectIdentifier
::
getIndexFromParticleOrCID
(
const
OUString
&
rParticleOrCID
)
sal_Int32
ObjectIdentifier
::
getIndexFromParticleOrCID
(
const
OUString
&
rParticleOrCID
)
{
{
sal_Int32
nRet
=
-
1
;
OUString
aIndexString
=
lcl_getIndexStringAfterString
(
rParticleOrCID
,
"="
);
OUString
aIndexString
=
lcl_getIndexStringAfterString
(
rParticleOrCID
,
"="
);
sal_Int32
nCharacterIndex
=
0
;
sal_Int32
nCharacterIndex
=
0
;
nRet
=
lcl_StringToIndex
(
aIndexString
.
getToken
(
0
,
','
,
nCharacterIndex
)
);
sal_Int32
nRet
=
lcl_StringToIndex
(
aIndexString
.
getToken
(
0
,
','
,
nCharacterIndex
)
);
return
nRet
;
return
nRet
;
}
}
...
...
sc/source/filter/qpro/qpro.cxx
Dosyayı görüntüle @
3f3980ff
...
@@ -126,9 +126,8 @@ FltError ScQProReader::readSheet( SCTAB nTab, ScDocument* pDoc, ScQProStyle *pSt
...
@@ -126,9 +126,8 @@ FltError ScQProReader::readSheet( SCTAB nTab, ScDocument* pDoc, ScQProStyle *pSt
FltError
ScFormatFilterPluginImpl
::
ScImportQuattroPro
(
SfxMedium
&
rMedium
,
ScDocument
*
pDoc
)
FltError
ScFormatFilterPluginImpl
::
ScImportQuattroPro
(
SfxMedium
&
rMedium
,
ScDocument
*
pDoc
)
{
{
FltError
eRet
=
eERR_OK
;
ScQProReader
aReader
(
rMedium
);
ScQProReader
aReader
(
rMedium
);
eRet
=
aReader
.
import
(
pDoc
);
FltError
eRet
=
aReader
.
import
(
pDoc
);
return
eRet
;
return
eRet
;
}
}
...
...
xmloff/source/core/xmluconv.cxx
Dosyayı görüntüle @
3f3980ff
...
@@ -431,11 +431,10 @@ sal_Bool SvXMLUnitConverter::convertDateTime( double& fDateTime,
...
@@ -431,11 +431,10 @@ sal_Bool SvXMLUnitConverter::convertDateTime( double& fDateTime,
if
(
bSuccess
)
if
(
bSuccess
)
{
{
double
fTempDateTime
=
0.0
;
const
Date
aTmpNullDate
(
aTempNullDate
.
Day
,
aTempNullDate
.
Month
,
aTempNullDate
.
Year
);
const
Date
aTmpNullDate
(
aTempNullDate
.
Day
,
aTempNullDate
.
Month
,
aTempNullDate
.
Year
);
const
Date
aTempDate
((
sal_uInt16
)
aDateTime
.
Day
,
(
sal_uInt16
)
aDateTime
.
Month
,
(
sal_uInt16
)
aDateTime
.
Year
);
const
Date
aTempDate
((
sal_uInt16
)
aDateTime
.
Day
,
(
sal_uInt16
)
aDateTime
.
Month
,
(
sal_uInt16
)
aDateTime
.
Year
);
const
sal_Int32
nTage
=
aTempDate
-
aTmpNullDate
;
const
sal_Int32
nTage
=
aTempDate
-
aTmpNullDate
;
fTempDateTime
=
nTage
;
double
fTempDateTime
=
nTage
;
double
Hour
=
aDateTime
.
Hours
;
double
Hour
=
aDateTime
.
Hours
;
double
Min
=
aDateTime
.
Minutes
;
double
Min
=
aDateTime
.
Minutes
;
double
Sec
=
aDateTime
.
Seconds
;
double
Sec
=
aDateTime
.
Seconds
;
...
...
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