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
04b3c70d
Kaydet (Commit)
04b3c70d
authored
May 25, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use more proper integer types and constify
Change-Id: I7e51c1bc713f43bcd89bb6e5a098b2ced670681f
üst
44a18f6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
unochart.cxx
sw/source/core/unocore/unochart.cxx
+4
-4
unoevent.cxx
sw/source/core/unocore/unoevent.cxx
+4
-4
unoflatpara.cxx
sw/source/core/unocore/unoflatpara.cxx
+2
-2
No files found.
sw/source/core/unocore/unochart.cxx
Dosyayı görüntüle @
04b3c70d
...
@@ -125,7 +125,7 @@ void SwChartLockController_Helper::LockUnlockAllCharts( bool bLock )
...
@@ -125,7 +125,7 @@ void SwChartLockController_Helper::LockUnlockAllCharts( bool bLock )
return
;
return
;
const
SwFrmFmts
&
rTblFmts
=
*
pDoc
->
GetTblFrmFmts
();
const
SwFrmFmts
&
rTblFmts
=
*
pDoc
->
GetTblFrmFmts
();
for
(
s
al_uInt16
n
=
0
;
n
<
rTblFmts
.
size
();
++
n
)
for
(
s
ize_t
n
=
0
;
n
<
rTblFmts
.
size
();
++
n
)
{
{
SwTable
*
pTmpTbl
;
SwTable
*
pTmpTbl
;
const
SwTableNode
*
pTblNd
;
const
SwTableNode
*
pTblNd
;
...
@@ -352,7 +352,7 @@ static void GetTableByName( const SwDoc &rDoc, const OUString &rTableName,
...
@@ -352,7 +352,7 @@ static void GetTableByName( const SwDoc &rDoc, const OUString &rTableName,
// find frame format of table
// find frame format of table
//! see SwXTextTables::getByName
//! see SwXTextTables::getByName
sal_uInt16
nCount
=
rDoc
.
GetTblFrmFmtCount
(
true
);
const
sal_uInt16
nCount
=
rDoc
.
GetTblFrmFmtCount
(
true
);
for
(
sal_uInt16
i
=
0
;
i
<
nCount
&&
!
pTblFmt
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
&&
!
pTblFmt
;
++
i
)
{
{
SwFrmFmt
&
rTblFmt
=
rDoc
.
GetTblFrmFmt
(
i
,
true
);
SwFrmFmt
&
rTblFmt
=
rDoc
.
GetTblFrmFmt
(
i
,
true
);
...
@@ -1753,7 +1753,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange
...
@@ -1753,7 +1753,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange
// "Table1.A1:A4;Table1.C2:C5" the same table must be used in all ranges!
// "Table1.A1:A4;Table1.C2:C5" the same table must be used in all ranges!
sal_Int32
nNumRanges
=
comphelper
::
string
::
getTokenCount
(
aRangeRepresentation
,
';'
);
sal_Int32
nNumRanges
=
comphelper
::
string
::
getTokenCount
(
aRangeRepresentation
,
';'
);
SwTable
*
pFirstFoundTable
=
0
;
// to check that only one table will be used
SwTable
*
pFirstFoundTable
=
0
;
// to check that only one table will be used
for
(
sal_
uInt16
i
=
0
;
i
<
nNumRanges
;
++
i
)
for
(
sal_
Int32
i
=
0
;
i
<
nNumRanges
;
++
i
)
{
{
OUString
aRange
(
aRangeRepresentation
.
getToken
(
i
,
';'
)
);
OUString
aRange
(
aRangeRepresentation
.
getToken
(
i
,
';'
)
);
SwFrmFmt
*
pTblFmt
=
0
;
// pointer to table format
SwFrmFmt
*
pTblFmt
=
0
;
// pointer to table format
...
@@ -1821,7 +1821,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML
...
@@ -1821,7 +1821,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML
// "Table1.$A$1:.$A$4 Table1.$C$2:.$C$5" the same table must be used in all ranges!
// "Table1.$A$1:.$A$4 Table1.$C$2:.$C$5" the same table must be used in all ranges!
sal_Int32
nNumRanges
=
comphelper
::
string
::
getTokenCount
(
aXMLRange
,
' '
);
sal_Int32
nNumRanges
=
comphelper
::
string
::
getTokenCount
(
aXMLRange
,
' '
);
OUString
aFirstFoundTable
;
// to check that only one table will be used
OUString
aFirstFoundTable
;
// to check that only one table will be used
for
(
sal_
uInt16
i
=
0
;
i
<
nNumRanges
;
++
i
)
for
(
sal_
Int32
i
=
0
;
i
<
nNumRanges
;
++
i
)
{
{
OUString
aRange
(
aXMLRange
.
getToken
(
i
,
' '
)
);
OUString
aRange
(
aXMLRange
.
getToken
(
i
,
' '
)
);
...
...
sw/source/core/unocore/unoevent.cxx
Dosyayı görüntüle @
04b3c70d
...
@@ -120,9 +120,9 @@ OUString SwHyperlinkEventDescriptor::getImplementationName(void)
...
@@ -120,9 +120,9 @@ OUString SwHyperlinkEventDescriptor::getImplementationName(void)
void
SwHyperlinkEventDescriptor
::
copyMacrosFromINetFmt
(
void
SwHyperlinkEventDescriptor
::
copyMacrosFromINetFmt
(
const
SwFmtINetFmt
&
aFmt
)
const
SwFmtINetFmt
&
aFmt
)
{
{
for
(
sal_
Int16
i
=
0
;
mpSupportedMacroItems
[
i
].
mnEvent
!=
0
;
i
++
)
for
(
sal_
uInt16
i
=
0
;
mpSupportedMacroItems
[
i
].
mnEvent
!=
0
;
++
i
)
{
{
sal_uInt16
nEvent
=
mpSupportedMacroItems
[
i
].
mnEvent
;
const
sal_uInt16
nEvent
=
mpSupportedMacroItems
[
i
].
mnEvent
;
const
SvxMacro
*
aMacro
=
aFmt
.
GetMacro
(
nEvent
);
const
SvxMacro
*
aMacro
=
aFmt
.
GetMacro
(
nEvent
);
if
(
NULL
!=
aMacro
)
if
(
NULL
!=
aMacro
)
replaceByName
(
nEvent
,
*
aMacro
);
replaceByName
(
nEvent
,
*
aMacro
);
...
@@ -132,9 +132,9 @@ void SwHyperlinkEventDescriptor::copyMacrosFromINetFmt(
...
@@ -132,9 +132,9 @@ void SwHyperlinkEventDescriptor::copyMacrosFromINetFmt(
void
SwHyperlinkEventDescriptor
::
copyMacrosIntoINetFmt
(
void
SwHyperlinkEventDescriptor
::
copyMacrosIntoINetFmt
(
SwFmtINetFmt
&
aFmt
)
SwFmtINetFmt
&
aFmt
)
{
{
for
(
sal_
Int16
i
=
0
;
mpSupportedMacroItems
[
i
].
mnEvent
!=
0
;
i
++
)
for
(
sal_
uInt16
i
=
0
;
mpSupportedMacroItems
[
i
].
mnEvent
!=
0
;
++
i
)
{
{
sal_uInt16
nEvent
=
mpSupportedMacroItems
[
i
].
mnEvent
;
const
sal_uInt16
nEvent
=
mpSupportedMacroItems
[
i
].
mnEvent
;
if
(
hasByName
(
nEvent
))
if
(
hasByName
(
nEvent
))
{
{
SvxMacro
aMacro
(
sEmpty
,
sEmpty
);
SvxMacro
aMacro
(
sEmpty
,
sEmpty
);
...
...
sw/source/core/unocore/unoflatpara.cxx
Dosyayı görüntüle @
04b3c70d
...
@@ -276,7 +276,7 @@ void SAL_CALL SwXFlatParagraph::changeText(::sal_Int32 nPos, ::sal_Int32 nLen, c
...
@@ -276,7 +276,7 @@ void SAL_CALL SwXFlatParagraph::changeText(::sal_Int32 nPos, ::sal_Int32 nLen, c
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xRange
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xRange
,
uno
::
UNO_QUERY
);
if
(
xPropSet
.
is
()
)
if
(
xPropSet
.
is
()
)
{
{
for
(
sal_
uInt16
i
=
0
;
i
<
aAttributes
.
getLength
();
++
i
)
for
(
sal_
Int32
i
=
0
;
i
<
aAttributes
.
getLength
();
++
i
)
xPropSet
->
setPropertyValue
(
aAttributes
[
i
].
Name
,
aAttributes
[
i
].
Value
);
xPropSet
->
setPropertyValue
(
aAttributes
[
i
].
Name
,
aAttributes
[
i
].
Value
);
}
}
...
@@ -306,7 +306,7 @@ void SAL_CALL SwXFlatParagraph::changeAttributes(::sal_Int32 nPos, ::sal_Int32 n
...
@@ -306,7 +306,7 @@ void SAL_CALL SwXFlatParagraph::changeAttributes(::sal_Int32 nPos, ::sal_Int32 n
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xRange
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xRange
,
uno
::
UNO_QUERY
);
if
(
xPropSet
.
is
()
)
if
(
xPropSet
.
is
()
)
{
{
for
(
sal_
uInt16
i
=
0
;
i
<
aAttributes
.
getLength
();
++
i
)
for
(
sal_
Int32
i
=
0
;
i
<
aAttributes
.
getLength
();
++
i
)
xPropSet
->
setPropertyValue
(
aAttributes
[
i
].
Name
,
aAttributes
[
i
].
Value
);
xPropSet
->
setPropertyValue
(
aAttributes
[
i
].
Name
,
aAttributes
[
i
].
Value
);
}
}
...
...
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