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
5365c9de
Kaydet (Commit)
5365c9de
authored
Eki 25, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: remove unnecessary casts
Change-Id: I34e823bc9f57924851a70e04c295b1d2c6e11ab4
üst
fce1bbdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
content.cxx
sw/source/uibase/utlui/content.cxx
+2
-5
No files found.
sw/source/uibase/utlui/content.cxx
Dosyayı görüntüle @
5365c9de
...
@@ -553,7 +553,6 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
...
@@ -553,7 +553,6 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
pMember
->
insert
(
std
::
move
(
pCnt
));
pMember
->
insert
(
std
::
move
(
pCnt
));
// with the same number and existing "pOldMember" the
// with the same number and existing "pOldMember" the
// old one is compared with the new OutlinePos.
// old one is compared with the new OutlinePos.
// cast for Win16
if
(
nOldMemberCount
>
nPos
&&
static_cast
<
SwOutlineContent
*>
((
*
pOldMember
)[
nPos
].
get
())
->
GetOutlineLevel
()
!=
nLevel
)
if
(
nOldMemberCount
>
nPos
&&
static_cast
<
SwOutlineContent
*>
((
*
pOldMember
)[
nPos
].
get
())
->
GetOutlineLevel
()
!=
nLevel
)
*
pbLevelOrVisibilityChanged
=
true
;
*
pbLevelOrVisibilityChanged
=
true
;
...
@@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget,
...
@@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget,
nTargetPos
=
static_cast
<
SwOutlineContent
*>
(
pNext
->
GetUserData
())
->
GetOutlinePos
()
-
1
;
nTargetPos
=
static_cast
<
SwOutlineContent
*>
(
pNext
->
GetUserData
())
->
GetOutlinePos
()
-
1
;
}
}
else
else
nTargetPos
=
static_cast
<
sal_uInt16
>
(
GetWrtShell
()
->
getIDocumentOutlineNodesAccess
()
->
getOutlineNodesCount
())
-
1
;
nTargetPos
=
GetWrtShell
()
->
getIDocumentOutlineNodesAccess
()
->
getOutlineNodesCount
()
-
1
;
}
}
OSL_ENSURE
(
pEntry
&&
OSL_ENSURE
(
pEntry
&&
...
@@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget,
...
@@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget,
nTargetPos
=
static_cast
<
SwOutlineContent
*>
(
pNext
->
GetUserData
())
->
GetOutlinePos
()
-
1
;
nTargetPos
=
static_cast
<
SwOutlineContent
*>
(
pNext
->
GetUserData
())
->
GetOutlinePos
()
-
1
;
}
}
else
else
nTargetPos
=
static_cast
<
sal_uInt16
>
(
GetWrtShell
()
->
getIDocumentOutlineNodesAccess
()
->
getOutlineNodesCount
())
-
1
;
nTargetPos
=
GetWrtShell
()
->
getIDocumentOutlineNodesAccess
()
->
getOutlineNodesCount
()
-
1
;
}
}
OSL_ENSURE
(
pEntry
&&
OSL_ENSURE
(
pEntry
&&
...
...
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