summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-21 09:06:55 +0200
committerNoel Grandin <noel@peralex.com>2015-08-21 10:19:44 +0200
commitfa12df37f42994cd172ec62be936e84ab01a6cf7 (patch)
tree731ce958ef48bf511ab5bbde80e8005a4fc50110 /sw/source/uibase/wrtsh
parentb0dcd6dbad43c1f7e45240687735b1127acad3ec (diff)
loplugin: defaultparams
Change-Id: I74d5ce7a23b87bed2ecffc8351dc15a9f0a68ed7
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/delete.cxx2
-rw-r--r--sw/source/uibase/wrtsh/move.cxx2
-rw-r--r--sw/source/uibase/wrtsh/select.cxx12
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx
index c25a372b1efb..897d9e7f5f10 100644
--- a/sw/source/uibase/wrtsh/delete.cxx
+++ b/sw/source/uibase/wrtsh/delete.cxx
@@ -325,7 +325,7 @@ long SwWrtShell::DelRight()
have moved to a different cell */
if (pSNdOld != pSNdNew)
{
- SwCrsrShell::Pop( true );
+ SwCrsrShell::Pop();
break;
}
}
diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx
index 23a1a28e5b84..4d93e8bfcf34 100644
--- a/sw/source/uibase/wrtsh/move.cxx
+++ b/sw/source/uibase/wrtsh/move.cxx
@@ -89,7 +89,7 @@ bool SwWrtShell::SimpleMove( FNSimpleMove FnSimpleMove, bool bSelect )
EndCrsrMove();
}
else if( ( nRet = (this->*FnSimpleMove)() ) )
- MoveCrsr( false );
+ MoveCrsr();
return nRet;
}
diff --git a/sw/source/uibase/wrtsh/select.cxx b/sw/source/uibase/wrtsh/select.cxx
index a0349962a3df..b5643323eac3 100644
--- a/sw/source/uibase/wrtsh/select.cxx
+++ b/sw/source/uibase/wrtsh/select.cxx
@@ -221,7 +221,7 @@ sal_uLong SwWrtShell::SearchPattern( const SearchOptions& rSearchOpt, bool bSear
sal_uLong nRet = Find( rSearchOpt, bSearchInNotes, eStt, eEnd, bCancel, eFlags, bReplace );
if(bCancel)
{
- Undo(1);
+ Undo();
nRet = ULONG_MAX;
}
return nRet;
@@ -246,7 +246,7 @@ sal_uLong SwWrtShell::SearchTempl( const OUString &rTempl,
eStt,eEnd, bCancel, eFlags, pReplaceColl);
if(bCancel)
{
- Undo(1);
+ Undo();
nRet = ULONG_MAX;
}
return nRet;
@@ -269,7 +269,7 @@ sal_uLong SwWrtShell::SearchAttr( const SfxItemSet& rFindSet, bool bNoColls,
if(bCancel)
{
- Undo(1);
+ Undo();
nRet = ULONG_MAX;
}
return nRet;
@@ -400,11 +400,11 @@ void SwWrtShell::EndSelect()
m_bInSelect = false;
if (m_bAddMode)
{
- AddLeaveSelect(0, false);
+ AddLeaveSelect(0);
}
else
{
- SttLeaveSelect(0, false);
+ SttLeaveSelect(0);
m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
}
@@ -656,7 +656,7 @@ void SwWrtShell::SetRedlineModeAndCheckInsMode( sal_uInt16 eMode )
{
SetRedlineMode( eMode );
if (IsRedlineOn())
- SetInsMode( true );
+ SetInsMode();
}
// Edit frame
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 9a691adcf821..76d905cc3ca4 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -690,7 +690,7 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
if ( bResetEnableSetModified )
{
- GetDoc()->GetDocShell()->EnableSetModified( true );
+ GetDoc()->GetDocShell()->EnableSetModified();
}
}
}