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
5490dea9
Kaydet (Commit)
5490dea9
authored
May 23, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to size_t
Change-Id: Ia2e6b067884bcbab680925b8613dd5a73d1fc3fb
üst
554d7bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
unosect.cxx
sw/source/core/unocore/unosect.cxx
+6
-6
No files found.
sw/source/core/unocore/unosect.cxx
Dosyayı görüntüle @
5490dea9
...
@@ -250,7 +250,7 @@ SwXTextSection::getChildSections() throw (uno::RuntimeException, std::exception)
...
@@ -250,7 +250,7 @@ SwXTextSection::getChildSections() throw (uno::RuntimeException, std::exception)
rSectionFmt
.
GetChildSections
(
aChildren
,
SORTSECT_NOT
,
false
);
rSectionFmt
.
GetChildSections
(
aChildren
,
SORTSECT_NOT
,
false
);
uno
::
Sequence
<
uno
::
Reference
<
text
::
XTextSection
>
>
aSeq
(
aChildren
.
size
());
uno
::
Sequence
<
uno
::
Reference
<
text
::
XTextSection
>
>
aSeq
(
aChildren
.
size
());
uno
::
Reference
<
text
::
XTextSection
>
*
pArray
=
aSeq
.
getArray
();
uno
::
Reference
<
text
::
XTextSection
>
*
pArray
=
aSeq
.
getArray
();
for
(
s
al_uInt16
i
=
0
;
i
<
aChildren
.
size
();
i
++
)
for
(
s
ize_t
i
=
0
;
i
<
aChildren
.
size
();
++
i
)
{
{
SwSectionFmt
*
const
pChild
=
aChildren
[
i
]
->
GetFmt
();
SwSectionFmt
*
const
pChild
=
aChildren
[
i
]
->
GetFmt
();
pArray
[
i
]
=
CreateXTextSection
(
pChild
);
pArray
[
i
]
=
CreateXTextSection
(
pChild
);
...
@@ -318,9 +318,9 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
...
@@ -318,9 +318,9 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
GetChildSections
(
aSectionsArr
);
GetChildSections
(
aSectionsArr
);
// and search for current header section
// and search for current header section
const
s
al_uInt16
nCount
=
aSectionsArr
.
size
();
const
s
ize_t
nCount
=
aSectionsArr
.
size
();
bool
bHeaderPresent
=
false
;
bool
bHeaderPresent
=
false
;
for
(
s
al_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
for
(
s
ize_t
i
=
0
;
i
<
nCount
;
++
i
)
{
{
if
(
aSectionsArr
[
i
]
->
GetType
()
==
TOX_HEADER_SECTION
)
if
(
aSectionsArr
[
i
]
->
GetType
()
==
TOX_HEADER_SECTION
)
bHeaderPresent
=
true
;
bHeaderPresent
=
true
;
...
@@ -520,7 +520,7 @@ lcl_UpdateSection(SwSectionFmt *const pFmt,
...
@@ -520,7 +520,7 @@ lcl_UpdateSection(SwSectionFmt *const pFmt,
SwDoc
*
const
pDoc
=
pFmt
->
GetDoc
();
SwDoc
*
const
pDoc
=
pFmt
->
GetDoc
();
SwSectionFmts
const
&
rFmts
=
pDoc
->
GetSections
();
SwSectionFmts
const
&
rFmts
=
pDoc
->
GetSections
();
UnoActionContext
aContext
(
pDoc
);
UnoActionContext
aContext
(
pDoc
);
for
(
s
al_uInt16
i
=
0
;
i
<
rFmts
.
size
();
i
++
)
for
(
s
ize_t
i
=
0
;
i
<
rFmts
.
size
();
++
i
)
{
{
if
(
rFmts
[
i
]
->
GetSection
()
->
GetSectionName
()
if
(
rFmts
[
i
]
->
GetSection
()
->
GetSectionName
()
==
rSection
.
GetSectionName
())
==
rSection
.
GetSectionName
())
...
@@ -1152,7 +1152,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
...
@@ -1152,7 +1152,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
}
}
const
SwRedlineTbl
&
rRedTbl
=
const
SwRedlineTbl
&
rRedTbl
=
pFmt
->
GetDoc
()
->
GetRedlineTbl
();
pFmt
->
GetDoc
()
->
GetRedlineTbl
();
for
(
s
al_uInt16
nRed
=
0
;
nRed
<
rRedTbl
.
size
();
nRed
++
)
for
(
s
ize_t
nRed
=
0
;
nRed
<
rRedTbl
.
size
();
++
nRed
)
{
{
const
SwRangeRedline
*
pRedline
=
rRedTbl
[
nRed
];
const
SwRangeRedline
*
pRedline
=
rRedTbl
[
nRed
];
SwNode
const
*
const
pRedPointNode
=
pRedline
->
GetNode
(
true
);
SwNode
const
*
const
pRedPointNode
=
pRedline
->
GetNode
(
true
);
...
@@ -1712,7 +1712,7 @@ throw (uno::RuntimeException, std::exception)
...
@@ -1712,7 +1712,7 @@ throw (uno::RuntimeException, std::exception)
const
SwSectionFmts
&
rFmts
=
pFmt
->
GetDoc
()
->
GetSections
();
const
SwSectionFmts
&
rFmts
=
pFmt
->
GetDoc
()
->
GetSections
();
sal_uInt16
nApplyPos
=
USHRT_MAX
;
sal_uInt16
nApplyPos
=
USHRT_MAX
;
for
(
s
al_uInt16
i
=
0
;
i
<
rFmts
.
size
();
i
++
)
for
(
s
ize_t
i
=
0
;
i
<
rFmts
.
size
();
++
i
)
{
{
if
(
rFmts
[
i
]
->
GetSection
()
==
pSect
)
if
(
rFmts
[
i
]
->
GetSection
()
==
pSect
)
{
{
...
...
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