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
8b306ebb
Kaydet (Commit)
8b306ebb
authored
Ara 03, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert xub_StrLen->sal_Int32 in doctxm.cxx
Change-Id: I0981631d516e18c065c3f5fcc1a049119b47ec76
üst
39c8524f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
doctxm.cxx
sw/source/core/doc/doctxm.cxx
+9
-9
No files found.
sw/source/core/doc/doctxm.cxx
Dosyayı görüntüle @
8b306ebb
...
...
@@ -75,9 +75,9 @@ TYPEINIT2( SwTOXBaseSection, SwTOXBase, SwSection ); // for RTTI
struct
LinkStruct
{
SwFmtINetFmt
aINetFmt
;
xub_StrLen
nStartTextPos
,
nEndTextPos
;
sal_Int32
nStartTextPos
,
nEndTextPos
;
LinkStruct
(
const
OUString
&
rURL
,
xub_StrLen
nStart
,
xub_StrLen
nEnd
)
LinkStruct
(
const
OUString
&
rURL
,
sal_Int32
nStart
,
sal_Int32
nEnd
)
:
aINetFmt
(
rURL
,
aEmptyOUStr
),
nStartTextPos
(
nStart
),
nEndTextPos
(
nEnd
)
{}
...
...
@@ -188,9 +188,9 @@ void SwDoc::DeleteTOXMark( const SwTOXMark* pTOXMark )
class
CompareNodeCntnt
{
sal_uLong
nNode
;
xub_StrLen
nCntnt
;
sal_Int32
nCntnt
;
public
:
CompareNodeCntnt
(
sal_uLong
nNd
,
xub_StrLen
nCnt
)
CompareNodeCntnt
(
sal_uLong
nNd
,
sal_Int32
nCnt
)
:
nNode
(
nNd
),
nCntnt
(
nCnt
)
{}
int
operator
==
(
const
CompareNodeCntnt
&
rCmp
)
const
...
...
@@ -221,9 +221,9 @@ const SwTOXMark& SwDoc::GotoTOXMark( const SwTOXMark& rCurTOXMark,
CompareNodeCntnt
aAbsIdx
(
pTOXSrc
->
GetIndex
(),
*
pMark
->
GetStart
()
);
CompareNodeCntnt
aPrevPos
(
0
,
0
);
CompareNodeCntnt
aNextPos
(
ULONG_MAX
,
S
TRING_NOTFOUND
);
CompareNodeCntnt
aNextPos
(
ULONG_MAX
,
S
AL_MAX_INT32
);
CompareNodeCntnt
aMax
(
0
,
0
);
CompareNodeCntnt
aMin
(
ULONG_MAX
,
S
TRING_NOTFOUND
);
CompareNodeCntnt
aMin
(
ULONG_MAX
,
S
AL_MAX_INT32
);
const
SwTOXMark
*
pNew
=
0
;
const
SwTOXMark
*
pMax
=
&
rCurTOXMark
;
...
...
@@ -2020,7 +2020,7 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
for
(
sal_uInt16
nHintIdx
=
0
;
nHintIdx
<
pHints
->
GetStartCount
();
nHintIdx
++
)
{
SwTxtAttr
*
pAttr
=
pHints
->
GetStart
(
nHintIdx
);
const
xub_StrLen
nTmpEnd
=
pAttr
->
End
()
?
*
pAttr
->
End
()
:
0
;
const
sal_Int32
nTmpEnd
=
pAttr
->
End
()
?
*
pAttr
->
End
()
:
0
;
if
(
nStartPos
>=
*
pAttr
->
GetStart
()
&&
(
nStartPos
+
2
)
<=
nTmpEnd
&&
pAttr
->
Which
()
==
RES_TXTATR_CHARFMT
)
...
...
@@ -2136,8 +2136,8 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
SwFmtCharFmt
aCharFmt
(
pCharFmt
);
for
(
sal_uInt16
j
=
0
;
j
<
xCharStyleIdx
->
size
();
j
+=
2
)
{
xub_StrLen
nStartIdx
=
(
*
xCharStyleIdx
)[
j
]
+
nOffset
;
xub_StrLen
nEndIdx
=
(
*
xCharStyleIdx
)[
j
+
1
]
+
nOffset
;
sal_Int32
nStartIdx
=
(
*
xCharStyleIdx
)[
j
]
+
nOffset
;
sal_Int32
nEndIdx
=
(
*
xCharStyleIdx
)[
j
+
1
]
+
nOffset
;
pNd
->
InsertItem
(
aCharFmt
,
nStartIdx
,
nEndIdx
,
nsSetAttrMode
::
SETATTR_DONTEXPAND
);
}
...
...
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