[Libreoffice-commits] core.git: sw/inc sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 22 19:55:01 UTC 2018
sw/inc/editsh.hxx | 2 +-
sw/source/core/edit/edlingu.cxx | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit f482d8dbf856a9167db52144f343824fbac19310
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Oct 22 15:21:55 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 22 21:54:38 2018 +0200
pvs-studio: V763 Parameter always rewritten in function body before being used
Change-Id: Ifd3b8b2a66a2257220f0596d31f5b545d416c748
Reviewed-on: https://gerrit.libreoffice.org/62186
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index b31fd2ce9943..36c33afa838b 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -786,7 +786,7 @@ public:
static bool HasHyphIter();
void HandleCorrectionError(const OUString& aText, SwPosition aPos, sal_Int32 nBegin,
- sal_Int32 nLen, SwPaM* pCursor, const Point* pPt,
+ sal_Int32 nLen, const Point* pPt,
SwRect& rSelectRect);
css::uno::Reference< css::linguistic2::XSpellAlternatives >
GetCorrection( const Point* pPt, SwRect& rSelectRect );
diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx
index e7dd6788a979..bcb24e45abe3 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -815,7 +815,7 @@ void SwEditShell::HyphIgnore()
}
void SwEditShell::HandleCorrectionError(const OUString& aText, SwPosition aPos, sal_Int32 nBegin,
- sal_Int32 nLen, SwPaM* pCursor, const Point* pPt,
+ sal_Int32 nLen, const Point* pPt,
SwRect& rSelectRect)
{
// save the start and end positions of the line and the starting point
@@ -840,7 +840,7 @@ void SwEditShell::HandleCorrectionError(const OUString& aText, SwPosition aPos,
++nRight;
aPos.nContent = nBegin + nLeft;
- pCursor = GetCursor();
+ SwPaM* pCursor = GetCursor();
*pCursor->GetPoint() = aPos;
pCursor->SetMark();
ExtendSelection( true, nLen - nLeft - nRight );
@@ -935,7 +935,7 @@ uno::Reference< XSpellAlternatives >
if ( xSpellAlt.is() ) // error found?
{
- HandleCorrectionError( aText, aPos, nBegin, nLen, pCursor, pPt, rSelectRect );
+ HandleCorrectionError( aText, aPos, nBegin, nLen, pPt, rSelectRect );
}
}
}
@@ -1014,7 +1014,7 @@ bool SwEditShell::GetGrammarCorrection(
if (rResult.aErrors.getLength() > 0) // error found?
{
- HandleCorrectionError( aText, aPos, nBegin, nLen, pCursor, pPt, rSelectRect );
+ HandleCorrectionError( aText, aPos, nBegin, nLen, pPt, rSelectRect );
}
}
}
More information about the Libreoffice-commits
mailing list