summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-09 14:00:41 +0200
committerNoel Grandin <noel@peralex.com>2016-03-10 10:09:58 +0200
commitad2ccc2365f99adf6bbfbfde555bbd2146629210 (patch)
treee96dcf6af0c0a01f02ca5e4a5f7b239f14054891 /cui
parent9509a2b4d2e9d532b0583a8310fe71cd0564804f (diff)
loplugin:constantparam in cui
Change-Id: I41e62f217dab471e8a8ff257516c75d4db0e7837
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx8
-rw-r--r--cui/source/dialogs/hlmarkwn.cxx4
-rw-r--r--cui/source/dialogs/hltpbase.cxx4
-rw-r--r--cui/source/inc/SpellDialog.hxx2
-rw-r--r--cui/source/inc/hlmarkwn.hxx2
5 files changed, 10 insertions, 10 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 7b772b114faf..a114d4ab4de4 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -976,7 +976,7 @@ IMPL_LINK_TYPED(SpellDialog, ModifyHdl, Edit&, rEd, void)
IMPL_LINK_NOARG_TYPED(SpellDialog, CancelHdl, Button*, void)
{
//apply changes and ignored text parts first - if there are any
- rParent.ApplyChangedSentence(m_pSentenceED->CreateSpellPortions(true), false);
+ rParent.ApplyChangedSentence(m_pSentenceED->CreateSpellPortions(), false);
Close();
}
@@ -1048,7 +1048,7 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck)
if(!bUseSavedSentence)
{
//apply changes and ignored text parts
- rParent.ApplyChangedSentence(m_pSentenceED->CreateSpellPortions(true), bRecheck);
+ rParent.ApplyChangedSentence(m_pSentenceED->CreateSpellPortions(), bRecheck);
}
m_pSentenceED->ResetIgnoreErrorsAt();
m_pSentenceED->ResetModified();
@@ -1852,7 +1852,7 @@ static void lcl_InsertBreakPosition_Impl(
Returns the text in spell portions. Each portion contains text with an
equal language and attribute. The spell alternatives are empty.
-----------------------------------------------------------------------*/
-svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions( bool bSetIgnoreFlag ) const
+svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions() const
{
svx::SpellPortions aRet;
ExtTextEngine* pTextEngine = GetTextEngine();
@@ -1913,7 +1913,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions( bool bSetIgnore
aPortion1.sText = pTextEngine->GetText(
TextSelection(TextPaM(0, nStart), TextPaM(0, aStart->nPosition)));
bool bIsIgnoreError = m_aIgnoreErrorsAt.find( nStart ) != m_aIgnoreErrorsAt.end();
- if( bSetIgnoreFlag && bIsIgnoreError )
+ if( bIsIgnoreError )
{
aPortion1.bIgnoreThisError = true;
}
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index a822f075c39f..10f8ead8f9eb 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -217,11 +217,11 @@ void SvxHlinkDlgMarkWnd::Move ()
mbUserMoved = true;
}
-bool SvxHlinkDlgMarkWnd::ConnectToDialog( bool bDoit )
+bool SvxHlinkDlgMarkWnd::ConnectToDialog()
{
bool bOldStatus = mbUserMoved;
- mbUserMoved = !bDoit;
+ mbUserMoved = true;
return bOldStatus;
}
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index c972d24deb21..c40509eed95c 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -214,7 +214,7 @@ bool SvxHyperlinkTabPageBase::MoveToExtraWnd( Point aNewPos, bool bDisConnectDlg
bool bReturn = mpMarkWnd->MoveTo ( aNewPos );
if( bDisConnectDlg )
- mpMarkWnd->ConnectToDialog( false );
+ mpMarkWnd->ConnectToDialog();
return ( !bReturn && IsMarkWndVisible() );
}
@@ -242,7 +242,7 @@ void SvxHyperlinkTabPageBase::ShowMarkWnd ()
{
// Pos Extrawindow anywhere
MoveToExtraWnd( Point(10,10) ); // very unlikely
- mpMarkWnd->ConnectToDialog( false );
+ mpMarkWnd->ConnectToDialog();
}
else
{
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx
index c52708001acc..e0ad793bff74 100644
--- a/cui/source/inc/SpellDialog.hxx
+++ b/cui/source/inc/SpellDialog.hxx
@@ -107,7 +107,7 @@ public:
bool IsUndoEditMode() const { return m_bIsUndoEditMode;}
void SetUndoEditMode(bool bSet);
- svx::SpellPortions CreateSpellPortions( bool bSetIgnoreFlag ) const;
+ svx::SpellPortions CreateSpellPortions() const;
void ResetUndo();
void Undo();
diff --git a/cui/source/inc/hlmarkwn.hxx b/cui/source/inc/hlmarkwn.hxx
index d9984e213b43..71b82b6712f1 100644
--- a/cui/source/inc/hlmarkwn.hxx
+++ b/cui/source/inc/hlmarkwn.hxx
@@ -99,7 +99,7 @@ public:
void RefreshTree(const OUString& aStrURL);
bool SelectEntry(const OUString& aStrMark);
- bool ConnectToDialog( bool bDoit = true );
+ bool ConnectToDialog();
sal_uInt16 SetError( sal_uInt16 nError);
};