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
62391d51
Kaydet (Commit)
62391d51
authored
Tem 25, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16: constify and avoid temporaries
Change-Id: I27a9b1c9aed70b8b16fd74bf76f5ce1941de0221
üst
07c00671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
txtcrsr.cxx
sw/source/uibase/shells/txtcrsr.cxx
+5
-8
No files found.
sw/source/uibase/shells/txtcrsr.cxx
Dosyayı görüntüle @
62391d51
...
@@ -86,7 +86,7 @@ void SwTextShell::ExecBasicMove(SfxRequest &rReq)
...
@@ -86,7 +86,7 @@ void SwTextShell::ExecBasicMove(SfxRequest &rReq)
rReq
.
AppendItem
(
SfxInt32Item
(
FN_PARAM_MOVE_COUNT
,
nCount
)
);
rReq
.
AppendItem
(
SfxInt32Item
(
FN_PARAM_MOVE_COUNT
,
nCount
)
);
rReq
.
AppendItem
(
SfxBoolItem
(
FN_PARAM_MOVE_SELECTION
,
bSelect
)
);
rReq
.
AppendItem
(
SfxBoolItem
(
FN_PARAM_MOVE_SELECTION
,
bSelect
)
);
}
}
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
const
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
rReq
.
Done
();
rReq
.
Done
();
// Get EditWin before calling the move functions (shell change may occur!)
// Get EditWin before calling the move functions (shell change may occur!)
SwEditWin
&
rTmpEditWin
=
GetView
().
GetEditWin
();
SwEditWin
&
rTmpEditWin
=
GetView
().
GetEditWin
();
...
@@ -122,9 +122,8 @@ void SwTextShell::ExecMove(SfxRequest &rReq)
...
@@ -122,9 +122,8 @@ void SwTextShell::ExecMove(SfxRequest &rReq)
SwEditWin
&
rTmpEditWin
=
GetView
().
GetEditWin
();
SwEditWin
&
rTmpEditWin
=
GetView
().
GetEditWin
();
rTmpEditWin
.
FlushInBuffer
();
rTmpEditWin
.
FlushInBuffer
();
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
bool
bRet
=
false
;
bool
bRet
=
false
;
switch
(
nSlot
)
switch
(
rReq
.
GetSlot
()
)
{
{
case
FN_START_OF_LINE_SEL
:
case
FN_START_OF_LINE_SEL
:
bRet
=
rSh
.
LeftMargin
(
true
,
false
);
bRet
=
rSh
.
LeftMargin
(
true
,
false
);
...
@@ -175,8 +174,7 @@ void SwTextShell::ExecMovePage(SfxRequest &rReq)
...
@@ -175,8 +174,7 @@ void SwTextShell::ExecMovePage(SfxRequest &rReq)
SwWrtShell
&
rSh
=
GetShell
();
SwWrtShell
&
rSh
=
GetShell
();
GetView
().
GetEditWin
().
FlushInBuffer
();
GetView
().
GetEditWin
().
FlushInBuffer
();
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
switch
(
rReq
.
GetSlot
()
)
switch
(
nSlot
)
{
{
case
FN_START_OF_NEXT_PAGE_SEL
:
case
FN_START_OF_NEXT_PAGE_SEL
:
rSh
.
SttNxtPg
(
true
);
rSh
.
SttNxtPg
(
true
);
...
@@ -256,8 +254,7 @@ void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
...
@@ -256,8 +254,7 @@ void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
SwWrtShell
&
rSh
=
GetShell
();
SwWrtShell
&
rSh
=
GetShell
();
GetView
().
GetEditWin
().
FlushInBuffer
();
GetView
().
GetEditWin
().
FlushInBuffer
();
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
switch
(
rReq
.
GetSlot
()
)
switch
(
nSlot
)
{
{
case
FN_NEXT_WORD_SEL
:
case
FN_NEXT_WORD_SEL
:
rSh
.
NxtWrd
(
true
);
rSh
.
NxtWrd
(
true
);
...
@@ -311,7 +308,7 @@ void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
...
@@ -311,7 +308,7 @@ void SwTextShell::ExecMoveLingu(SfxRequest &rReq)
void
SwTextShell
::
ExecMoveMisc
(
SfxRequest
&
rReq
)
void
SwTextShell
::
ExecMoveMisc
(
SfxRequest
&
rReq
)
{
{
SwWrtShell
&
rSh
=
GetShell
();
SwWrtShell
&
rSh
=
GetShell
();
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
const
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
bool
bSetRetVal
=
true
,
bRet
=
true
;
bool
bSetRetVal
=
true
,
bRet
=
true
;
switch
(
nSlot
)
switch
(
nSlot
)
{
{
...
...
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