cid#1371295 avoid Missing move assignment operator
Change-Id: I27cca1b737c441a9f31ed6aa0fc462190ca818da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176682 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
f0019607e2
commit
0847c140a1
1 changed files with 6 additions and 2 deletions
|
@ -221,8 +221,12 @@ void SwDoc::SetRubyList(SwPaM& rPam, const SwRubyList& rList)
|
|||
|
||||
// Expand selection to account for insertion
|
||||
rPam.Normalize();
|
||||
// coverity[swapped_arguments : FALSE] - this is in the correct order
|
||||
rPam = SwPaM{ *aOrigPam.GetPoint(), *rPam.GetMark() };
|
||||
|
||||
if( !rPam.HasMark() )
|
||||
rPam.SetMark();
|
||||
rPam.Exchange();
|
||||
*rPam.GetMark() = *aOrigPam.GetPoint();
|
||||
|
||||
if (*rPam.GetPoint() == *rPam.GetMark())
|
||||
{
|
||||
rPam.GetPoint()->AdjustContent(-nTotalContentGrowth);
|
||||
|
|
Loading…
Reference in a new issue