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
cc804794
Kaydet (Commit)
cc804794
authored
Mar 13, 2012
tarafından
Maxime de Roucy
Kaydeden (comit)
Cédric Bosdonnat
Mar 15, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwEditShell : use of the STL swap function
üst
5f679b3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
editsh.hxx
sw/inc/editsh.hxx
+1
-0
edattr.cxx
sw/source/core/edit/edattr.cxx
+4
-10
No files found.
sw/inc/editsh.hxx
Dosyayı görüntüle @
cc804794
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
#include <tblenum.hxx>
#include <tblenum.hxx>
#include <IMark.hxx>
#include <IMark.hxx>
#include <algorithm>
#include <vector>
#include <vector>
#include <set>
#include <set>
#include <swundo.hxx>
#include <swundo.hxx>
...
...
sw/source/core/edit/edattr.cxx
Dosyayı görüntüle @
cc804794
...
@@ -116,8 +116,8 @@ sal_Bool SwEditShell::GetPaMAttr( SwPaM* pPaM, SfxItemSet& rSet,
...
@@ -116,8 +116,8 @@ sal_Bool SwEditShell::GetPaMAttr( SwPaM* pPaM, SfxItemSet& rSet,
if
(
nSttNd
>
nEndNd
||
(
nSttNd
==
nEndNd
&&
nSttCnt
>
nEndCnt
))
if
(
nSttNd
>
nEndNd
||
(
nSttNd
==
nEndNd
&&
nSttCnt
>
nEndCnt
))
{
{
s
al_uLong
nTmp
=
nSttNd
;
nSttNd
=
nEndNd
;
nEndNd
=
nTmp
;
s
td
::
swap
(
nSttNd
,
nEndNd
)
;
nTmp
=
nSttCnt
;
nSttCnt
=
nEndCnt
;
nEndCnt
=
(
xub_StrLen
)
nTmp
;
std
::
swap
(
nSttCnt
,
nEndCnt
)
;
}
}
if
(
nEndNd
-
nSttNd
>=
getMaxLookup
()
)
if
(
nEndNd
-
nSttNd
>=
getMaxLookup
()
)
...
@@ -195,11 +195,7 @@ SwTxtFmtColl* SwEditShell::GetPaMTxtFmtColl( SwPaM* pPaM ) const
...
@@ -195,11 +195,7 @@ SwTxtFmtColl* SwEditShell::GetPaMTxtFmtColl( SwPaM* pPaM ) const
// reverse start and end if they aren't sorted correctly
// reverse start and end if they aren't sorted correctly
if
(
nSttNd
>
nEndNd
)
if
(
nSttNd
>
nEndNd
)
{
std
::
swap
(
nSttNd
,
nEndNd
);
sal_uLong
tmpNd
=
nSttNd
;
nSttNd
=
nEndNd
;
nEndNd
=
tmpNd
;
}
// for all the nodes in the current Point and Mark
// for all the nodes in the current Point and Mark
for
(
sal_uLong
n
=
nSttNd
;
n
<=
nEndNd
;
++
n
)
for
(
sal_uLong
n
=
nSttNd
;
n
<=
nEndNd
;
++
n
)
...
@@ -343,9 +339,7 @@ sal_Bool SwEditShell::IsMoveLeftMargin( sal_Bool bRight, sal_Bool bModulus ) con
...
@@ -343,9 +339,7 @@ sal_Bool SwEditShell::IsMoveLeftMargin( sal_Bool bRight, sal_Bool bModulus ) con
nEndNd
=
PCURCRSR
->
GetPoint
()
->
nNode
.
GetIndex
();
nEndNd
=
PCURCRSR
->
GetPoint
()
->
nNode
.
GetIndex
();
if
(
nSttNd
>
nEndNd
)
if
(
nSttNd
>
nEndNd
)
{
std
::
swap
(
nSttNd
,
nEndNd
);
sal_uLong
nTmp
=
nSttNd
;
nSttNd
=
nEndNd
;
nEndNd
=
nTmp
;
}
SwCntntNode
*
pCNd
;
SwCntntNode
*
pCNd
;
for
(
sal_uLong
n
=
nSttNd
;
bRet
&&
n
<=
nEndNd
;
++
n
)
for
(
sal_uLong
n
=
nSttNd
;
bRet
&&
n
<=
nEndNd
;
++
n
)
...
...
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